Below are steps to generate SSH keys on a Linux machine:

  1. Start the key generation program by typing “ssh-keygen -m PEM -t rsa -b 4096” in terminal
  2. Enter the filename you want for the key.
  3. Enter passphrase if required. (This is optional)