LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   scp copying from Linux to windows (https://www.linuxquestions.org/questions/linux-networking-3/scp-copying-from-linux-to-windows-112870/)

richard3403 11-05-2003 08:57 PM

scp copying from Linux to windows
 
The syntax of scp is approximately scp first_pathname second_pathname, with each pathname including a hostname and path and filename.

How do you copy from a Linux machine to a Windows box?

I am running scp in a secure shell that has opened up a BASH shell.

I know one thing, that if you have c:\temp\file in Windows, you do c/temp/file in the scp command, but as for hostname I am stumped. I have read MAN and googled to no avail.

Help!

Thanks

borodimer 11-06-2003 12:50 AM

If you wanted to scp a file to a machine with an ip of 1.1.1.1 you would do:
scp file_you_wanted_to_send 1.1.1.1:foldername/foldername/

As far as scp'ing a file from a linux box to a windows box, this will require you to have a ssh server running on the windows box. An alternative would be to use winscp (on the windowsbox) to grab the files from the linux box.

richard3403 11-06-2003 07:31 AM

Thanks! I was using putty and it comes with some other programs including pscp, which I suppose is the Windows ssh server. That explains it!


All times are GMT -5. The time now is 04:39 PM.