Hacker News new | comments | ask | show | jobs | submit login

One thing the author is missing is the ssh-copy-id command, which will copy a ssh key to he authroized_keys file and set the correct permissions. No need for complicated and fragile ssh host "mkdir .." commands

I tried to leave a comment, but twas asking complicated things about registering.

It's worth mentioning that ssh-copy-id might have problems with specifying port number. Here is workaround for that:

$ ssh-copy-id ‘-p xx -i ~/.ssh/id_rsa.pub login@example.com’

Thanks for the suggestion... that is much simpler. I added that to the post. Sorry about commenting being so difficult; I'm using Posterous, so it's not by my design.

Thank you! I've done this dozens of times and never knew, none of the tutorials I've looked up reference it.

Applications are open for YC Summer 2019

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