ssh-keygen -t dsa cat ~/.ssh/id_dsa.pub | ssh youruser@example.com 'cat - >> ~/.ssh/authorized_keys2' |
Choose no password. And you’re done…
Tags: codesnippets, server, ssh
The Blog of Sven Welzel
ssh-keygen -t dsa cat ~/.ssh/id_dsa.pub | ssh youruser@example.com 'cat - >> ~/.ssh/authorized_keys2' |
Choose no password. And you’re done…
Tags: codesnippets, server, ssh
This entry was posted on Friday, July 11th, 2008 at 12:37 and is filed under sysadmin. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Even easier is this:
ssh-keygen -t dsa
&& ssh-copy-id -i ~/.ssh/id_dsa.pub user@server
That one above is a far easier solution to keyless ssh login from the bash command line using key signatures!