Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Putty to login to the remote server and then set the environment and change the path to a particular directory. Now from this dir, I need to copy a folder to my desktop which is Windows?

How can I achieve this ?

Some of my failed attempts are as follows

scp -r remote_foldername srao@my_ipaddress:C:\srao\Users\Desktop

So from the remote server which is to be copied through putty, to my_username_in_windows@ip_address:path to destination

share|improve this question

migrated from Oct 8 '12 at 5:30

This question came from our site for professional and enthusiast programmers.

This is not a programming question, and is off topic for StackOverflow. The FAQ has more information about the types of questions that should be asked here. Voting to close as off topic and migrate to a more suitable site. – Ken White Oct 8 '12 at 3:06
up vote 5 down vote accepted

Try WinSCP. If you can ssh into a machine, it can transfer files.

share|improve this answer
Actually i found this right after posting the Qn and it worked as a charm. – Sanjay Rao Oct 9 '12 at 3:53

As Peter Lundgren suggests, WinSCP is a good choice -- for scp with a graphical user interface.

To copy from the Windows command line (not from the PuTTY shell on your remote Linux machine), PuTTY uses pscp. You may have pscp already installed with PuTTY (e.g. in C:\Program Files\PuTTY or C:\Program Files (x86)\PuTTY), or it can be dowloaded from the PuTTY Download Page. It uses syntax like standard scp:

 C:\Program Files (x86)\PuTTY>pscp -r mylinuxuser@remotelinuxbox:/path/to/foldername C:\path\to\windows\destination
share|improve this answer

There are couple of options available here:

  1. As pointed by Peter Lundgren and Lars Rohrbach, you can use winSCP - a GUI secure copy protocol tool

  2. Another option would be to install cygwin on your windows machine and use scp to 'download/upload' files from your remote Linux host. e.g.

scp -i /path/to/pem/file $SRC $DESTINATION

  1. One drawback while using scp would be unavailability of resume support in case you face connection stallings. So you can use rsync with --partial flag. e.g.

rsync --partial --progress -e "ssh -i /path/to/pem/file" user@host:/path/to/files/to/transfer /local/path

share|improve this answer

You must log in to answer this question.

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