Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    > $ 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™)


does not work on mac, but this guy has a script:

http://phildawson.tumblr.com/post/484798267/ssh-copy-id-in-m...


Homebrew also has a recipe for it.

    brew install ssh-copy-id




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: