Skip to content

Scp destination path is screwed. #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codersam opened this issue Nov 17, 2016 · 3 comments
Closed

Scp destination path is screwed. #410

codersam opened this issue Nov 17, 2016 · 3 comments
Assignees

Comments

@codersam
Copy link

codersam commented Nov 17, 2016

I'm trying to upload files from Bamboo's SCP task to Windows Server 2012 R2 Standard Edition (run in Amazon t2.micro instance).

But files get saved under wrong names.

For example:
I configure Bamboo's SCP task to upload file api.war into folder deploy as a user [email protected] (via public key put into authorized_keys).
Which I expect to find later on the server at the path C:\Users\buser\deploy\api.war
But instead I find it at the following path: C:\Users\buser\'deploy'

So it seems that it handles the single quotes in the destination path parameter the wrong way.

Kind regards,
Alex

P.S. I used https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v0.0.3.0
OpenSSH-Win64.zip

@tbxy09
Copy link

tbxy09 commented Nov 21, 2016

I got the path issue too while I try to upload the file to git server using git push command, always return a path with the quotes in its error message
#400

@bingbing8
Copy link
Contributor

this issue is not repro on the latest build. please try it again on next release and reopen it if it still repros.

@bingbing8 bingbing8 self-assigned this Dec 7, 2016
@dangrussell
Copy link

I was able to create a work-around for this by first creating a folder on the Windows side that literally has the single-quotes already in it, In your case, making a folder named 'deploy' in C:\Users\buser\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants