passwordless SSH on osx

Use at your own risk people!
For user:
ssh-keygen -t dsa
cat ~/.ssh/id_dsa.pub | ssh example.com ‘cat >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys; cat ~/.ssh/authorized_keys’
For Root:
sudo ssh-keygen -t dsa
sudo cat /var/root/.ssh/id_dsa.pub | ssh root@example.com ‘cat >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys; cat ~/.ssh/authorized_keys’

Leave a Reply