[ale] scp file from Windows to Linux

Paul Cartwright paul_tbot at pcartwright.com
Mon Feb 27 14:30:25 EST 2006


On Mon February 27 2006 1:56 pm, Tony Carter wrote: 
> A couple of other options.
>
> 1) Install sftp/scp server on the windows box and use ssh keypairs.
> 2) Initiate the connection from the XP PC using pscp or pftp with
> ssh keypairs.
> 
this got my interest, as I may want to do this.. I have an SUSE desktop 
and an XP laptop that I want to trade files once in a while. Both 
behind my netgear router. I did a google and found this, is this what 
you mean???

http://www.linuxquestions.org/questions/showthread.php?p=1784460#post1784460


machineA is the source machine, machineB is the machine you want to 
connect to passwordlessly. account is the desired account you wish to 
connect to without a password.

On machineA:
type "ssh-keygen -t dsa"

use the default option for each, and don't provide a passphrase for the 
key (as that would defeat the purpose of what we are trying to 
accomplish)

now, if you did the default options, that should have created two files 
in on MachineA in ~/.ssh/id_dsa
~/.ssh/id_dsa.pub

now, you can type this to copy the key
scp ~/.ssh/id_dsa.pub account at machineB:~/

now, on machineB, logged into the desired account:
type "cat ~/id_dsa.pub >> ~/.ssh/authorized_keys"

now you should be able to ssh/scp from machine "A" to machine "B" 
without providing a password!

NOTE:carefully guard the private key file id_dsa. If anyone got a copy 
of that, they could log into the machine "B" that you have authorized 
for that key pair.
-----
except, I can't run ssh-keygen on my XP box...
-- 
Paul Cartwright
Registered Linux user # 367800 



More information about the Ale mailing list