Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SCP adding single quotes around remote folder

Greg Koreman April 9, 2013

When using the SCP task I set the Remote Path to be . or Archive but the SCP task copies all files into a remote folder called '.' or 'Archive'. No matter what I enter into Remote Path it gets surrounded by single quotes.

Listing the directory shows:

'.'

'Archive'

If I put a full path into Remote Path it says "No such file or directory".

I can recreate this behaviour on the command line like so:

scp -i key myTestFile "myuser@myhost.com:'Archive'"

Is there any workaround for this? Has anyone else experienced this problem? I am using bamboo 4.4.5.

3 answers

0 votes
anastasiosk_Doble October 25, 2019

I'm having the same issue with SCP hangs when the singles quotes are added.

I ran the scp command line without the singles quotes in the remote folder via windows CMD from the Bamboo computer to the OpenSSH server, the file was transferred.

Connecting to OpenSSH server on a Windows10 computer.

Bamboo v5.11.1.1 build 51117. 

Any solution in near the future or workaround? 

0 votes
Greg Koreman April 15, 2013

debug1: Remote protocol version 1.99, remote software version Server-VII-hpn13v1

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 15, 2013

What is the operating system/shell/SSH server on the destination server? The SCP library that Bamboo uses does add the quotes, but they should not end up in file name...

Greg Koreman April 15, 2013

debug1: Remote protocol version 1.99, remote software version Server-VII-hpn13v1

Greg Koreman April 23, 2013

Is this the information you needed?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events