SCP: Copy file from remote linux server onto a windows machine?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, this is what I am doing...
I am on a windows xp machine. I use putty to log into a linux machine. I then want to copy files from that linux machine to the windows machine. Can you please give me a step by sep guide on how to do this?
Configure SAMBA on your linux machine and make the directory shared which you want to copy
then simply access your linux machine from windows
for further help on how to configure samba use the help of your best friend GOOGLE
Here is what I found was the quickest way to use the command line transfer a file from a linux server to my windows box (much like scp):
-Download pscp
-Navigate your command prompt to the folder where the downloaded pscp application lives
-Run this command: pscp -l username -pw password yourlinuxboxIPaddress.com:/home/some/path/file.txt . (don't miss the dot at the end, which is the target location for the file you are transferring, feel free to change this to put the file where you want it)
-If you access your linux box from a specific port (i.e. 23), then use the -P option (-P 23) in the above command
-Your file will be in the folder where you issued the command
Hope this helps anyone else trying to copy files with the command line. For the easiest way to transfer files from a linux box to a window box in general, I recommend WinSCP.
I think what he's wanting to do is be on the linux box, and copy from the linux box to the windows box without getting on said windows box. I am also curious on how to do this.
@Predatorian: that's just basic scp, but the target MSWin box must have a listening ssh service ie you're doing a 'push' from Linux to MS.
If you do a 'pull' from the the MS box when logged into the MS box, then the ssh server has to be on the Linux box.
No worries.
Its really a qn of being very clear about which OS you are actually logged into when you issue the cmd.
Eg logging into Linux from MS, then issuing the cmd at the Linux prompt means not using pscp
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.