Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # Genrate keys
  2.  
  3. $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  4.  
  5. -----------------------------------------------------------
  6.  
  7. # Edit ~/.ssh/config
  8.  
  9. Host your.hostname.com
  10. Hostname github.com
  11. User git
  12. IdentityFile ~/.ssh/id_rsa
  13.  
  14. -----------------------------------------------------------
  15.  
  16. # Add Identity without Keychain
  17. # There may be times in which you don't want the passphrase stored in the keychain,
  18. # but don't want to have to enter the passphrase over and over again.
  19.  
  20. $ ssh-add ~/.ssh/id_rsa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement