[TriLUG] copying files

Joseph Mack NA3T jmack at wm7d.net
Fri Jun 22 13:27:08 EDT 2012


On Fri, 22 Jun 2012, Alan Porter wrote:

> You are 99% there.

I must not understand something.

I already have my private/public ssh keys which have a 
passphrase.

> step 1 - generate a public-private key pair using ssh-keygen -f keyname
> step 2 - copy the public part to your destination $HOME/.ssh/authorized_keys

I now have an extra alternate keypair, which may or may not 
be passwordless (you don't say which)

> step 3 - tell rsync to use the private key
> rsync -auvz -e "ssh -i keyname -p xxx" src/foo/ user at host:/dest/foo/

I still have to use the passphrase (which may be blank) for 
the alternate keypair. Blank passphrases won't fly here. I'm 
not sure what will, but this won't.

Joe

> step 4 - profit!
>
>>  rsync -auvz -e "ssh -p xxx" src/foo/ user at host:/dest/foo/
>>
>>  To be scriptable this method needs a passwd-less ssh account. This
>>  isn't acceptable.
>
>
>

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list