Skip to main content

How to generate an SSH key

Alex Richards avatar
Written by Alex Richards
Updated yesterday

How to generate an SSH key

This is a guide on how to generate SSH keys on Windows, Mac & Linux Machines.

________________________________________________________________________________________

On Mac, Windows and Linux computers

  1. Open a new terminal

  2. Run the command

    1. mkdir ~/.ssh/evaluagent

  3. You should see a new directory has been created

  4. Run the command

    1. ssh-keygen -b 4096 -t rsaย 

  5. Enter the location that you want to save your keys in (~ may not work. If it doesn't, use your users home directory e.g /Users/username)

    1. ~/.ssh/evaluagent/sftp

  6. Leave the passphrase blank (hit โŽ)

  7. Confirm the blank passphrase (hit โŽ)

  8. Your public key will be saved and then the location you entered above i.e evaluagent/sftp

  9. To retrieve your public key

    1. On Mac/Linux, run

      1. cat ~/.ssh/evaluagent/sftp.pub

    2. On Windows, run

      1. ~/.ssh/evaluagent/sftp.pub

  10. Copy the key by selecting and copying the key

  11. Never share the private key publicly (~/.ssh/evaluagent/sftp)

Did this answer your question?