Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. If you are setting up a new machine, first generate a key to the default `~/.ssh/id_rsa` by running:
  2.  
  3. ```sh
  4. ssh-keygen -t rsa
  5. ssh-add ~/.ssh/id_rsa
  6. ```
  7.  
  8. Next, for each company account you have, run this command (substituting companyName to something more meaningful), which tags the key with companyName and saves it to ~/.ssh/companyName
  9.  
  10. ```sh
  11. cd ~/.ssh
  12. ssh-keygen -t rsa -C "companyName" -f "companyName"
  13. ssh-add ~/.ssh/companyName
  14. ```
  15.  
  16. Open up the SSH config file:
  17.  
  18. ```sh
  19. nano ~/.ssh/config
  20. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement