| Author |
scp copy files from windows to linux
|
jing hu
Ranch Hand
Joined: Jun 30, 2009
Posts: 63
|
|
windows is source machine.
I need copy files from windows to linux.
In windows I set up cygwin and ssh , and run" ssh-keygen -t rsa" to id_rsa.pub and id_rsa.
Then copy the file id_rsa.pub to linux ~/.ssh directory.(here I use wincp)
in the linux ~/.ssh directory I create authorized_keys file and type the command " cat id_rsa.pub >> authorized_keys"
Then in the linux machine, I run
it return the error :ssh: connect to host 9.123.*.*port 22: Connection refused
Can anybody tell me the answer or solution.
Thanks very much.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24041
|
|
|
If you want to run scp on the Linux box, then the ssh daemon (sshd) has to be running on the Windows box. It can be set up to run as a Windows service, which is a little messy but doable.
|
[Jess in Action][AskingGoodQuestions]
|
 |
jing hu
Ranch Hand
Joined: Jun 30, 2009
Posts: 63
|
|
Thanks, Ernest. your suggestion is very valuable. I have resolved my question according to your tip.
it just only need ssh-host-config and some chmod operations.
Thanks very much
|
 |
 |
|
|
subject: scp copy files from windows to linux
|
|
|