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
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
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!