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
janu agrawal
  • 39
  • 1
  • 2
  • 6
  • 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 – roaima Nov 22 '17 at 16:26
  • Is it really a duplicat? In the mentioned question and answer (https://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 '17 at 20:10

2 Answers2

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/
chloesoe
  • 245
  • 1
  • 8
  • 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. – roaima Nov 22 '17 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 '17 at 16:54
  • The colon is required. A remote path is optional. – roaima Nov 22 '17 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

Egor Vasilyev
  • 2,468
  • 1
  • 8
  • 11
  • 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 '17 at 20:07