This is a guide on how to generate SSH keys on Windows, Mac & Linux Machines.
________________________________________________________________________________________
On Mac and Linux computers
- Open a new terminal
- Run the command
-
mkdir ~/.ssh/evaluagent -
-
- You should see a new directory has been created
- Run the command
-
ssh-keygen -b 4096 -t rsa
-
- Enter the location that you want to save your keys in
-
~/.ssh/evaluagent/sftp
-
- Leave the passphrase blank (hit ⏎)
- Confirm the blank passphrase (hit ⏎)
- Your public key will be saved and then the location you entered above i.e evaluagent/sftp
- To retrieve your public key, run
-
cat ~/.ssh/evaluagent/sftp.pub
-
- Copy the key by selecting and copying the key
- Never share the private key publicly (~/.ssh/evaluagent/sftp)
On Windows computers
- Open a new Windows Powershell terminal (⊞ + R , type powershell, hit ⏎)
- Run the command below to create a directory where the keys will be stored
-
mkdir ~/.ssh/evaluagent -
-
- Run the command
-
ssh-keygen
-
- Enter the location that you want to store your keys
-
~/.ssh/evaluagent/sftp
-
- Leave the passphrase blank (hit ⏎)
- Confirm the blank passphrase (hit ⏎)
- Your public key will be saved and then the location you entered above i.e evaluagent/sftp
- To retrieve your public key, run
-
cat ~/.ssh/evaluagent/sftp.pub
-
- Copy the key by selecting and copying the key (CTRL + C)
- Never share the private key publicly (~/.ssh/evaluagent/sftp)
Comments
0 comments
Please sign in to leave a comment.