/ Published in: Bash
URL: http://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html
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.
Expand |
Embed | Plain Text
cat ~/.ssh/id_rsa.pub | ssh root@IP_ADDRESS "mkdir -p ~/.ssh; cat - >> ~/.ssh/authorized_keys"
Comments
Subscribe to comments
You need to login to post a comment.

Just realized I posted this twice. hehe.