February 14, 2005

ssh pubkey auth one-liner

Transfer your ssh public key to a remote host for passwordless logins in one line:
cat ~/.ssh/id_rsa.pub | ssh hostname "cat >> ~/.ssh/authorized_keys"

Posted by Alan at February 14, 2005 09:49 AM
Comments

Now you tell me, after I get done transferring 10 keys by cut and paste :)

Serves me right, I should have thought of it myself.

Mike

Posted by: Mike G. at May 16, 2006 10:08 AM
Post a comment












Remember personal info?