3 ms·
> $ cat .ssh/id_dsa.pub | ssh host 'cat >> ~/.ssh/authorized_keys' Using ssh-copy-id is simpler: ssh-copy-id host (Works On My Machine™)
by rbonvall 15y ago
> $ cat .ssh/id_dsa.pub | ssh host 'cat >> ~/.ssh/authorized_keys'
Using ssh-copy-id is simpler:
ssh-copy-id host
(Works On My Machine™)
- stretchwithme 15y agodoes not work on mac, but this guy has a script: http://phildawson.tumblr.com/post/484798267/ssh-copy-id-in-mac-os-x http://phildawson.tumblr.com/post/484798267/ssh-copy-id-in-m...
- pavel_lishin 15y agoHomebrew also has a recipe for it. brew install ssh-copy-id