SSH on Windows
Windows does not come with a built-in SSH client.
However you can download PuTTY for free.
A very useful feature of PuTTY is it does not need to be installed, which allows it to be used on machines without administrative access.
Simply run the
To connect to the cluster, set the following:
- Host Name = <NetID>@login.storrs.hpc.uconn.edu
To save you from having to enter this "Host Name" line the next time you run PuTTY, type any name into the "Saved Sessions" box and click the "Save" button. Then when you next open PuTTY, just double click on the saved session in the list (under Default) to open the connection with your saved settings.
Also, the first time you connect, you will see a warning about the server's fingerprint. Click "Yes" to accept the server's public key.
Now you will see a black terminal with your Net ID, prompting for your password. Type your Net ID (not engineering ID) password to log in to the cluster. That's it! Continue reading to automate your login to the cluster.
Login with SSH keys
We recommend generating SSH keys to save yourself time entering your NetID and password, not only for PuTTy, but for all of your OpenSSH aware programs. Download PuTTY gen to generate the keys.
Create key pair using PuTTY Key Generator
- Run puttygen.exe and click on the "Generate" button
- After you move the mouse around to generate randomness and he green bar moves to completion, it will prompt for a Key passphrase. You can leave it blank.
- Click "Save public key" and then create the standard .ssh folder:
- Press the Ctrl+L keys to select the top location bar.
- Press Ctrl+A and then Backspace to clear the current folder name.
%HOMEPATH%in that location bar and hit Enter.
- Click the "New folder" button and type
.ssh.and hit Enter (yes, you need the extra dot at the end).
- Double-click on the new ".ssh" folder and save your public key as
- Click "Save private key" and click "Yes" to ignore the warning about saving the key without a passphrase.
- Click Conversions > Export OpenSSH key and click "Yes" to ignore the warning about saving the key without a passphrase.
- Leave the PuTTY Key Generator window open! We will use it later on.
Copy the public key to the cluster
Now let's copy the public key to the cluster to allow auto-login.
- Go to your PuTTY window from your last session where you are logged into the cluster. If you don't see see
[<NetID>@cn65 ~]$then make sure you followed the previous steps to login using PuTTY. In the PuTTy window:
- Copy the line below from this wiki:
- Right click anywhere inside of your PuTTy window to paste, and then to run the command press Enter. This opens
authorized_keysinside of the editor "nano".
- It's possible your file is empty, or you may see some "ssh-rsa ..." lines. If you have some of those "ssh-rsa ..." lines, press Alt+/ to move to the last line of the file. If your cursor is not at the beginning of a new line, press Enter to create a new line.
- Copy the line below from this wiki:
- Go back to your still open PuTTy Key Generator window and click inside of the scrolling window where it says "Public key for pasting into OpenSSH authorized_keys file"
- Press Ctrl+HOME then Ctrl+SHIFT+END and right-click > Copy.
- To paste in the cluster window, just right-click again in the cluster window.
- In the cluster window, save the file with Ctrl+O Enter Ctrl+X
- Close the cluster window and choose OK to close the session.
Tell PuTTy to use the private key
Now that the cluster knows to allow our key, we just have to tell PuTTy to use the key during login.
- Open PuTTy again: choose your Saved "login3" Session on the main screen and click "Load".
- Double-click on SSH in the left-side menu.
- Click on Auth
- Browse for the private key. Putty should automagically open to the .ssh folder in your home directory, where you can choose your new id_rsa.ppk file
- To save your session, in the left side window scroll to the top and click on Session, choose "login3" and click "Save".
- Test that it works by clicking "Open" and you should automatically be logged in without having to type your password!