Translations of this page:

This is an old revision of the document!


PuTTY is terminal emulator to use in remote connections.


Add/remove extra SSH keys to cluster

After admin has added your public key to cluster (under your home directory ~/.ssh/authorized_keys) you can add/remove keys by yourself. Generate key for your laptop for example and add a new line to .ssh/authorized_keys to allow access from laptop. Use single keypair only for single host. If private key of laptop is compromised by virus for example you can just remove public key of laptop from ~/.ssh/authorized_keys of cluster to deny access with compromised key.

Making connection

First Pageant is started and private key file loaded. Then connection is made with PuTTY.

First time

To ease up connection process we set up autoloading of your private key file.

  1. Go to folder where you downloaded executables from PuTTY homepage
  2. Create shortcut to Pageant
  3. Move shortcut to desktop
  4. Edit Pageant shortcut on desktop to autoload your key file
Click pageant.exe with second mouse button and select "Create shortcut". For PuTTY there should be shortcut on desktop already. If not feel free to create one.

Now click with second button the Pageant shortcut (on desktop) and select properties.

  1. Change “Start in” to folder which you used to save your private keyfile. It was recommended to use Z:\keys
  2. Add name of your private keyfile to end of “Target”. For example: C:\PROGRAMS\PUTTY\pageant.exe keyfilename.ppk

Now Pageant should be configured and ready to use. Start it and it should ask for private keyfile password.

Next start PuTTY and set up new connection.

  1. Session: Host Name: (where you replace something with the cluster name), Type: SSH
  2. Window > Translation: Remote character set: UTF-8
  3. Connection > Data: Auto-login username: <your login name>
  4. Connection > SSH > X11: Set up X11 forwarding if needed (You need X server installed)
  5. Session: Saved sessions: <give name for profile> and hit Save
  6. (Set up another connection)

Now you should be able to quickly load connection settings and after hitting Open you should be connected to server.

PuTTY will give security alert on first connect with message “The server's host key is not cached in registry”. Then it shows the fingerprint of host key. Check that it matches to ones listed in info page of particular cluster. You are looking SSH host key fingerprint from basic information table:

If it doesn't match contact admin immediately and do NOT proceed. If it matches it means that server you are connecting is cluster login node and just hit “Yes”. PuTTY stores this value for future use and verifies host every time when connecting. If you get this kind of warning later you should be extremely careful as it indicates that someone is trying to perform a man-in-the-middle type attack.

Everyday use

General process is as follows. You have to only give password for keyfile once even if you are going to make multiple connections.

  1. Start Pageant
  2. Provide keyfile password
  3. Make connection(s) with PuTTY or WinSCP or FileZilla
  4. Close Pageant from system tray
Start Pageant with shortcut created and it asks for keyfile password. Pageant starts to system tray.

Only use Pageant when actually making connections to clusters.
Pageant is not needed after successfull logins so shut it down after you are finished with creating connections.
/opt/webdata/webroot/wiki/data/attic/en/hpc/software/putty.1578636716.txt.gz · Last modified: 2020/01/10 06:11 by vrintala
[unknown button type]
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki