Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

migrated from stackoverflow.com Oct 8 '12 at 5:30

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

2 Answers

up vote 4 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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.