-1

How to download file(s) from remote server directory to local machine in PuTTY ?

I got the command for inserting file to remote directory from local machine. But it is not working for me though there is no error message.

pscp c:\documents\foo.txt fred@example.com:/tmp/foo

  • Are you sure this is a question suited for StackOverflow? – babu646 Jul 10 '18 at 06:41
  • 1
    Possible duplicate of [How to download a file from my server using SSH (using PuTTY on Windows)](https://stackoverflow.com/questions/22127092/how-to-download-a-file-from-my-server-using-ssh-using-putty-on-windows) – Martin Prikryl Jul 10 '18 at 08:28

1 Answers1

1

(Question is probably more suited to Superuser)

You have your parameters in the wrong order. Please refer to the documentation:
https://the.earth.li/~sgtatham/putty/0.70/htmldoc/Chapter5.html#pscp

To download, you need:

pscp [options] [user@]host:source target

What you have there is the opposite, it's for doing an upload.

Damon
  • 67,688
  • 20
  • 135
  • 185