Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ssh -i mykey.pem private.ip.of.other.server
  2.  
  3. ssh-keygen
  4.  
  5. .ssh/id_rsa
  6. .ssh/id_rsa.pub
  7.  
  8. cat ~/.ssh/id_rsa.pub
  9. [select and copy to your clipboard]
  10.  
  11. cat >> ~/.ssh/authorized_keys
  12. [paste your clipboard contents]
  13. [ctrl+d to exit]
  14.  
  15. ssh -i ~/.ssh/id_rsa private.ip.of.other.server
  16.  
  17. Host <ip-or-name-of-A-server>
  18. ForwardAgent yes
  19.  
  20. set|grep SSH_AUTH_ # output should be something like this:
  21. SSH_AUTH_SOCK=/tmp/ssh-sEHiRF4hls/agent.12042
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement