Guest User

Untitled

a guest
Jan 22nd, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. 1. Open terminal.
  2. 2. Enter the command below, replacing with your email:
  3.  
  4. ```sh
  5. $ ssh-keygen -t rsa -b 4096 -C "johndoe@example.com" -f <path to key>
  6. ```
  7.  
  8. The path to key should be in ~/.ssh directory, with a self-explanatory filename and no spaces.
  9.  
  10. 3. Type a password...
  11. - Having a password is recommended if you're using the key to log into a server;
  12. - Don't use a password if the key is for automatic server deploys or other automated tasks;
  13.  
  14. 4. Save the key by pressing enter.
  15. 5. Add ssh key to agent:
  16.  
  17. ```sh
  18. $ ssh-add <path to key>
  19. ```
  20.  
  21. 6. Enter password if you used one.
Add Comment
Please, Sign In to add comment