How to create a key for a SSH/SFTP connection

Linux/macOS

 

  1. Run the ssh-keygen -t rsa command in the terminal
  2. Confirm the location.
  3. Choose a password for the key.
  4. Confirm the password.

Two files are created in choosen location /XXXXX/.ssh:
id_rsa (private key)
id_rsa.pub (public key)

The key is created.



Windows

 

  1. Download the PuTTy program: https://www.putty.org/
  2. Run PuTTygen.
  3. Click on Generate.
  4. Move the mouse cursor until the green field is filled

 
    5. Enter the password for the key in the Key passphrase and Confirm passphrase fields.
    6. Save the private and public key with the Save private key and Save public key buttons.