How to access the cluster with PuTTY

From ScientificComputing
Jump to: navigation, search

< How to access the cluster


Basic login

Start PuTTy

Open putty.png

Enter Euler hostname (euler.ethz.ch)

Login with password1.png

Enter your ETH account username and password

Login with password2.png

Upon a successful login, you can see the welcome banner and links to this Wiki, Smartdesk and cluster support

Login with password3.png

Saved session

Create a session

Enter Euler hostname (euler.ethz.ch) and a session name

Putty config name session.png

Add your username

Putty config add username.png

Save a session

Putty config save session.png

Load a session

Putty config load session.png

SSH keys

Create SSH keys

Start PuTTYgen

Run puttygen.png

Generate SSH Keys

Puttygen create keys.png

Enter a passphrase and save the public and private keys

Puttygen save keys.png

Navigate to the folder you want to save the SSH keys, define the key file name and save it

Puttygen save private keys.png

Add the private key to a session

Create a session or load a session. Then, go to the Auth section to add the private SSH key.

Putty config add ssh key.png

Copy the public key to the cluster

Log in to the cluster and open the file $HOME/.ssh/authorized_keys with a text editor

This file should have the reading and writing permission only for you, the owner of the file (-rw-------). Otherwise, you can change the permission with the command

chmod 600 $HOME/.ssh/authorized_keys

Copy public key.png

Copy the public key to the file and save the file

Copy public key 2.png

Passwordless login

Create an SSH session or load a saved session. then, enter the passphrase to login

Login with ssh key.png

Auto login

Run Pageant

Run pageant.png

When Pageant is running, you can see the pageant icon on the left of the tool bar

Pageant running.png

Add SSH key to Pageant

Right click on the Pageant icon. Select "Add Key"

Pageant add key.png

Navigate to the folder where the keys are stored and select the private key

Pageant add key2.png

Enter the passphrase and click OK

Pageant add key3 enter pass phrase.png

Passwordless and passphraseless login

The next time you load the saved session with SSH key configured, you can log in without typing the password or the passphrase

Login with passwordless.png

Further readings