Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you are setting up a new machine, first generate a key to the default `~/.ssh/id_rsa` by running:
- ```sh
- ssh-keygen -t rsa
- ssh-add ~/.ssh/id_rsa
- ```
- 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
- ```sh
- cd ~/.ssh
- ssh-keygen -t rsa -C "companyName" -f "companyName"
- ssh-add ~/.ssh/companyName
- ```
- Open up the SSH config file:
- ```sh
- nano ~/.ssh/config
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement