4 ms·
Isn't this simpler? ssh user@host 'mkdir ~/.ssh;echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/authorized_keys'
by account_taken 14y ago
Isn't this simpler?
ssh user@host 'mkdir ~/.ssh;echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/authorized_keys'
- bradleyland 14y agoThat works for your own key, but if you visit `http://github.com/<username>.keys` http://github.com/<username>.keys`, you can get that user's pubkeys. Likewise for Launchpad at `https://launchpad.net/<username>/+sshkeys` https://launchpad.net/<username>/+sshkeys`. This tool pulls keys from these locations so that you can add other users to your servers.