# Copy data from a remote Linux box to my Windows desktop

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

-

## migrated from stackoverflow.comOct 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

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

-
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

-

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

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