🗝️Generating SSH Keys

How to generate your SSH keys

This method of generating SSH keys should be used, regardless of your OS

  1. Generate your keys via this command

ssh-keygen -t rsa -m PEM 
  1. This generates 2 files, a private key file and a public key file

    • Private key file: id-rsa

    • Private key file: id-rsa.pub

Private Key example

Example of the generated private key format (id-rsa)

-----BEGIN PRIVATE KEY-----
MIIG/gIBAXXXL+CaxDa
-----END PRIVATE KEY-----

Public Key example

Example of the generated public key format (id-rsa.pub)

ssh-rsa AAAAB3NXXX= administrator@XXX

Last updated