[ale] scp file from Windows to Linux
Trey Sizemore
trey at fastmail.fm
Mon Feb 27 15:37:19 EST 2006
On Mon Feb 27, 2006 02:30PM, Paul Cartwright wrote:
> 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...
Yes, but what I ended up doing is installing WinSCP on the WinXP
machine and transferring the file that way.
It was actually pretty painless.
--
Cheers,
Trey
----
Checkuary, n.:
The thirteenth month of the year. Begins New Year's Day and
ends when a person stops absentmindedly writing the old year on his
checks.
Linux chameleon 2.6.13-15-default i686 GNU/Linux
3:36pm up 3 days 21:44, 7 users, load average: 0.63, 0.47, 0.57
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
More information about the Ale
mailing list