2

I have installed puTTY for Windows 10 and access a remote server via SSH. I want to send the files from my local Windows box to the remote server. How can I do this?

I am using puTTY but psftp, pscp etc. are also an option.

I use this.

pscp.exe i F:\.ssh\anotherprivate.ppk "F:\xss vulnerability.txt" [email protected].

And got this:

More than one remote source not supported
2
  • 1
    You seem to have an un-necessary trailing dot. Is that real or a typo? Also, what's that lone i doing immediately after the pscp.exe command? If it's a typo please ensure that what you show us here accurately reflects what you're trying on your own system Nov 22, 2017 at 16:26
  • Is it really a duplicat? In the mentioned question and answer (unix.stackexchange.com/a/92716/223965) there isn't explained how to connect with a private key. So IMO this question has a right to exist.
    – chloesoe
    Nov 22, 2017 at 20:10

2 Answers 2

3

I think you have two errors:

First typo, you should use -i F:\.ssh\anotherprivate.ppk (notice the hyphen).

Second you could specify the folder on the target system (or end with colon for the user's home folder): [email protected]:/tmp/

That leads to the whole command:

pscp.exe -i F:\.ssh\anotherprivate.ppk "F:\xss vulnerability.txt" [email protected]:/tmp/
3
  • You don't need to specify a target folder on the remote system. If you omit that it will default to your home directory there. Nov 22, 2017 at 16:36
  • ok thanks, I didn't know that, I always specify it. And on my machine it does not work without colon at the and of the remote target. then probably the dot at the end of the original posts command.
    – chloesoe
    Nov 22, 2017 at 16:54
  • The colon is required. A remote path is optional. Nov 22, 2017 at 17:47
1

Use WinSCP (Windows 10 compatible) to download/upload files to remote server:

enter image description here

Also you can use putty as part of WinSCP:

enter image description here

1
  • Perhaps you should add a screenshot of the menu in advanced where you could set the private key. Because the original post is using a ssh key to connect.
    – chloesoe
    Nov 22, 2017 at 20:07

Not the answer you're looking for? Browse other questions tagged .