How to set up SSH keys
WINDOWS
Feel free to check out this video which will visually walk you through all the steps below. Below will take you through the steps needed to set up a SSH key pair for remote log in to the cluster:
- First you will need to install a more recent version of putty on your laptop.
To do this download the most recent version of putty byclicking here
- Next, you will need to open a new application called PuTTYgen.
To do this, go to Windows -- Start Menu -- All Programs -- PuTTY -- PuTTYgen
You should see the following:
- Use all the default setttings (RSA and 2048 bit) and click on Generate.
- You may be prompted to 'generate some randomness by moving the mouse over the blank area'. Just move your mouse to create your unique key.
- You do not need to generate a passphrase, unless you want to. If you choose to use a passphrase, this will be your new password when logging on.
- When the key is generated, you will see the public key displayed in the text box at the top of the screen. Copy this public key to your clip board. Then, email this key to jrduncan@utexas.edu
- Click on the "Save private key" button and select a secure location to keep your private key. Remember where you store this file as you will need it soon. Name it whatever you would like; the extension of the file will be autogenerated to be .ppk
- Before logging on click on to the cluster, click on SSH then Auth on the left hand panel.
- Then, click on Browse and search for the .ppk file you created earlier.
- You are now ready to log in. This time you should not need to type your password unless you created a passphrase.
MAC/Linux
Below will take you through the steps needed to set up a SSH key pair for remote log in to the cluster:
- First you will need to create a unique key for your personal laptop.
Open a terminal, but do not log into the FRI cluster.
Instead type ssh-keygen.
You will then be prompted with the following questions and output like the following.
For all three questions just press enter and type nothing.
Generating public/private rsa key pair.
Enter file in which to save the key (/home/demo/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/demo/.ssh/id_rsa.
Your public key has been saved in /home/demo/.ssh/id_rsa.pub.
The key fingerprint is:
4a:dd:0a:c6:35:4e:3f:ed:27:38:8c:74:44:4d:93:67 demo@a
The key's randomart image is:
+--[ RSA 2048]----+
| .oo. |
| . o.E |
| + . o |
| . = = . |
| = S = . |
| o + = + |
| . o + o . |
| . o |
| |
+-----------------+
- The above commands should create a public and private key.
Next, you will need to email the public key to jrduncan@utexas.edu.
You can get your public key by typing the following in your terminal:
cat ~/.ssh/id_rsa.pub
After you hear back from me that your account has been set up, try the following:
- To make sure that you have set up ssh keys correctly try logging on to the cluster by typing ssh -YC username@fri.oden.utexas.edu. You should be able log on to the cluster without typing in your password.