Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. ###Generate an SSH keypair for passwordless SSH###
  2. ```
  3. #on your computer
  4. cd ~/.ssh
  5. #you might need to make the .ssh directory
  6. ssh-keygen -C "my@email.com"
  7. #hit enter a few times to generate key
  8.  
  9. #copy the file contents to the clipboard
  10. cat id_rsa.pub
  11.  
  12. #log into your machine
  13. ssh user@mydomain.com
  14. #make the .ssh directory and get in it
  15. mkdir .ssh
  16. cd .ssh
  17. #open authorized_keys in nano and paste the contents in
  18. nano authorized_keys
  19. #paste contents in and save by hitting ctrl+x
  20.  
  21. #exit and you can now ssh without a password!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement