putty - how to copy a file over ssh from a remote machine?(linux to windows)

08
2013-11
  • Shurmajee

    I am using putty to connect to a remote host and I wish to copy a folder containing multiple files from the remote machine to my local machine.I am on a windows machine and the remote machine is running linux. Is there a GUI based tool available?

  • Answers
  • Anil Tallapragada

    I presume that you are invoking Putty on a Windows machine and using it to connect to some UNIX machine.

    If that the case you cannot do what you want because putty is like a thin client giving you a terminal access.

    I would suggest you to install cygwin using which can help you with both the functionality of Putty and also allow you to use SCP.

    with in cygwin you can do something like

    scp -r <user>@<remoteHost>:<pathtofile>/<fileName> <localfilename>

  • Krister Andersson

    You could do like this, not sure if this will work using putty, but it's worth a try:

     ssh <user>@<host> cat /<path_to_file>/<filename> > <local_filename>
    

    I just tried putty and the above will not work, but if you are running an ssh server on your windows machine I guess you would be able to do this:

    1. Connect to the remote unix machine using: ssh <user>@<host>
    2. Transfer the file from the unix machine using: ssh <user>@<host> cat </path/file ">" filename

    Look at this link: Network File copy using SSH


  • Related Question

    ssh - unable to connect to a remote windows xp machine using putty
  • achraf

    i have problem to connect to a remote windows xp machine using putty with an admin account.

    when trying i get an "access denied" message

    anyone have an idea of what can cause the problem ?


  • Related Answers
  • lg.

    Did you create user (and password) for OpenSSH? OpenSSH don't use the same windows users.

  • Area 51

    Do have physical access to that machine ? Maybe it's due to firewall rules or even sshd configuration.

    Except for the case that you don't write the password correctly :> , sshd may be configured to reject any try to connect to the server.

    At least in linux, you could see that in /etc/ssh/sshd_config. No idea for windows