Send your SSH Public Key to each host you use PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Bart Dorlandt   
Tuesday, 12 January 2010 14:52
if you do not already have a key pair
ssh-keygen -t dsa

send your public key to each host you ssh into
cat ~/.ssh/id_dsa.pub | ssh you@host 'cat - >> ~/.ssh/authorized_keys2'


now you can use ssh-agent and ssh-add to facilitate a "single signon" situation.

useful if you're ssh'ing into a bunch of machines all day.

google ssh-agent for distribution-specific details.

 

ssh-copy-id

But even more sweet, but not available on every machine is:

ssh-copy-id -i ~/.ssh/id_dsa.pub [user]@[host]
Trackback(0)
Comments (0)Add Comment

Write comment - Name & Email obligated

busy
 


Related items: