Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Open terminal.
- 2. Enter the command below, replacing with your email:
- ```sh
- $ ssh-keygen -t rsa -b 4096 -C "johndoe@example.com" -f <path to key>
- ```
- The path to key should be in ~/.ssh directory, with a self-explanatory filename and no spaces.
- 3. Type a password...
- - Having a password is recommended if you're using the key to log into a server;
- - Don't use a password if the key is for automatic server deploys or other automated tasks;
- 4. Save the key by pressing enter.
- 5. Add ssh key to agent:
- ```sh
- $ ssh-add <path to key>
- ```
- 6. Enter password if you used one.
Add Comment
Please, Sign In to add comment