index rss mastodon twitter github linkedin email
Álvaro Ramírez
sponsor

Álvaro Ramírez

13 July 2014 Paswordless ssh with authorized keys

On local host

ssh-keygen
cat ~/.ssh/id_dsa.pub | ssh user@remotehost 'cat >> ~/.ssh/authorized_keys'

On remote host

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

UPDATE: Add "AddKeysToAgent yes" to .ssh/config and enter password only once.