Translations of this page:

PuTTY

PuTTY is terminal emulator to use in remote connections.

PuTTY

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: something.lut.fi, 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.

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/pages/en/hpc/software/putty.txt · Last modified: 2017/03/16 12:05 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