Submitted by lyutsai on Fri, 10/02/2009 - 11:36
Posted in
Assume that you need a passwordless access to TARGET computer via SSH from ORIGIN computer. You need an authorization key for that:
user@ORIGIN> ssh-keygen -t rsa user@ORIGIN> cat .ssh/id_rsa.pub | ssh user@TARGET 'cat >> .ssh/authorized_keys'
Note: ssh-keygen will ask you to type then name for a generated key. The default name is id_rsa.pub.
Hint: This allows you to use automatic completion when using scp.
Post new comment