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.
SCP: Copy file from remote linux server onto a windows machine?
I have used the scp to copy files from a remote linux box in my home to a mac at my job with no problem. I would like to do the same thing with a PC. I want to copy files from a remote linux box in my home onto my work PC running win xp. I am running a shell (bash)from the windows machine and I log into the linux machine. I want to copy the files from linux machine to windows pc and vice versa. What is the exact command to do such a thing?
ps, if your wondering why... I want to creat a script that will be kept in a file on my linux box that will automatically compare files on both the win and linux machine, and then pull the most recently updated ones from the win machine to the linux, and vise vera.
you can use winscp. It use the sftp which is part of ssh. So if your linux machine run ssh then its easy to have access to your files. Check this link http://winscp.net/eng/index.php
I am slow... lol. I dont get it.
WinSCP or Sftp are they commands/programs already in the ssh shell or linux system? When I man winscp I get nothing. when I man sftp I get a page but dont understand how to use it.
I just want to enter in some shell commands to download files from linux server (when logged into server remotely) to windows system (which will be local).
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?
go to your winders box and open a command prompt (start -> run -> "cmd" enter for XP) cd to where pscp.exe is installed (most likely c:\program files\PuTTy)
Example given doesn't work on CentOS. I get -bash: pscp: command not found
when trying to run the command. I think it's easiear to use Winscp to copy files from a linux to a windows machine and back
I am able to copy the file from window machine to linux machine via winscp but i wanted to know is there any command by which i can copy the file from linux machine to windows machine.
Please help if anyone know about the same.
Thanks in Advance.
Cheers,
Kuldeep
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.