RSA key authentication:

Generating your keys using Linux, *BSD, Mac OS 10.x, Linux subsystem for Windows, etc.

In a terminal on your machine, run the program ssh-keygen. If your OS is relatively current, the defaults should be fine. If you're not sure, you can be more specific with the command:
ssh-keygen -b 2048 -t rsa
see man(1) ssh-keygen for more options.

The program will ask for an optional password for the key. If you are the sole user of the machine in question, it is probably safe to leave it blank. Otherwise, we recommend using a password on the key.

ssh-keygen will have created 2 files in the .ssh directory on your machine: id_rsa and Make sure the files are readable only by you (chmod 600). The contents of must be placed in (or added to) the file 'authorized_keys' in the .ssh directory of your panix account. You may remove the file from your computer.

Once your keys are in place, create or open the file .ssh/config, and add the following lines:

      IdentityFile <path-to-your-home-directory>/.ssh/id_rsa
      KbdInteractiveAuthentication no
      PreferredAuthentications publickey,password

Generating and installing your keys using PuTTY on Windows

RSA keys may be generated with the program PuTTYgen.exe, included with the normal PuTTY installation. This is a GUI program. At the bottom of the PuTTYgen window, select SSH-2 RSA as the key type (Not SSH-1 (RSA)). You may add an optional password to protect the key. If you are not the sole user of this computer, we recommend doing so. Then click the Generate button, and move the mouse around in the window. The program uses mouse movements to generate randomness.

Once generation is completed, the public key will appear in the window. Click 'Save private key'. Copy the public key displayed in the window, and paste it into the file .ssh/authorized_keys in your Panix account.

In the main PuTTY screen, scroll down and click on the SSH category. Select the 'Auth' option. Where it says 'Private key file for authetication', click Browse, and select the key file you just created (id_rsa.ppk, unless you named it something else when you saved the key).

Go back to the Session item, select your Panix session configuration, and click 'Save'.

Last Modified:Wednesday, 31-Oct-2018 16:37:45 EDT
© Copyright 2006-2011 Public Access Networks Corporation