Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh -i mykey.pem private.ip.of.other.server
- ssh-keygen
- .ssh/id_rsa
- .ssh/id_rsa.pub
- cat ~/.ssh/id_rsa.pub
- [select and copy to your clipboard]
- cat >> ~/.ssh/authorized_keys
- [paste your clipboard contents]
- [ctrl+d to exit]
- ssh -i ~/.ssh/id_rsa private.ip.of.other.server
- Host <ip-or-name-of-A-server>
- ForwardAgent yes
- set|grep SSH_AUTH_ # output should be something like this:
- SSH_AUTH_SOCK=/tmp/ssh-sEHiRF4hls/agent.12042
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement