Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • From a terminal, generate the SSH key pair.

    Code Block
    ssh-keygen -t rsa
  • Confirm the output filename of the key files. This can be changed to modify the location where the key files will be created and the name of the files.

  • Optionally, enter a passphrase if one is desired. Confirm passphrase, if one is used.

  • This will generate two files, a private key file (e.g., ~/.ssh/id_rsa) and a public key file (e.g., ~/.ssh/id_rsa.pub).

Add public key

The On the server, the public key needs to be added to a file called authorized_keys within the user’s .ssh folder.

...