SCP to win????

Eagle710

OSNN Senior Addict
Joined
13 Mar 2005
Messages
312
Does anyone know how to send a file from a linux host to a windows using the SCP command???? no documentation anywhere on how to do it....
 

fitz

Woah.. I'm still here?
Political Access
Joined
26 Apr 2004
Messages
4,084
WinSCP or PuTTY can both be used to do SCP file copies in either direction.
 

the_tazinator

Are we there yet?
Joined
19 May 2002
Messages
177
If you want to send a file from Linux machine to a Windows machine with SCP there has to be a SSH server on the windows box since that is what protocol SCP uses. Install CopSSH on your Windows box which is a ssh server for windows. Make sure to open TPC port 22 through your windows firewall.
 

Eagle710

OSNN Senior Addict
Joined
13 Mar 2005
Messages
312
im going to install PuttySCP for windows.... from the linux machine is there a way to autoemate the scp to a windows machine..... i mean i need a password and everything so i was wondering how the syntax would look for that.
 

the_tazinator

Are we there yet?
Joined
19 May 2002
Messages
177
Yes, there is a way to automate it but it would be using secure keys, not passwords and would still require a ssh server on the Windows machine.

On the linux machine you want to run "ssh-keygen -t rsa". This generates two files, id_rsa and id_rsa.pub. You will need to copy the content of id_rsa.pub into /home/<username>/.ssh/authorized_keys on the windows machine.

Without knowing what flavor of linux you re running, here is a generic example of how to SSH/SCP without a username and password.

To automate it, create a shell script that runs the commands that you chose and schedule a job in your crontab to run the shell script at a time of your liking.

Also, if you are looking for an app to install on the Windows machine to connect to the linux machine, Filezilla is a very good app.
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,997
Messages
673,411
Members
5,590
Latest member
AntonioPR