Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Generate your SSH key pair with the RSA algorithm
  2. ssh-keygen -t rsa -C user@example.com
  3.  
  4. # Add they key pair to ssh-agent
  5. ssh-add
  6.  
  7. # Copy public key to SSH destination
  8. ssh-copy-id login@destination
  9.  
  10. # Show your public key
  11. ssh-add -L
  12.  
  13. # SSH to remote host and confirm presence of public key
  14. ssh login@destination
  15. cat .ssh/authorized_keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement