SHARE
TWEET

Untitled

a guest Oct 20th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top