|
|
![]() |
|
|
Top | #1 |
|
OSNN Senior Addict
Joined: March 2005
Location: Toronto, Ontario, Canada
Posts: 312
Reputation: 40
Power: 88 |
|
|
|
|
|
|
Top | #2 |
|
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,014
Reputation: 2947
Power: 164 |
|
|
|
|
|
|
Top | #3 |
|
Are we there yet?
Joined: May 2002
Location: In a house
Posts: 177
Reputation: 40
Power: 120 |
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.
|
|
|
|
|
|
Top | #4 |
|
OSNN Senior Addict
Joined: March 2005
Location: Toronto, Ontario, Canada
Posts: 312
Reputation: 40
Power: 88 |
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.
|
|
|
|
|
|
Top | #5 |
|
Are we there yet?
Joined: May 2002
Location: In a house
Posts: 177
Reputation: 40
Power: 120 |
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|