Used to create my pub key to ssh to given ip for Capistrano Deployments. This is a one liner that the usage is just to change the IP_ADDRESS to the host ip you wish to authorize for.
- cat ~/.ssh/id_rsa.pub | ssh root@IP_ADDRESS "mkdir -p ~/.ssh; cat - >> ~/.ssh/authorized_keys"
CommentsSubscribe to comments
You need to login to post a comment.