Actions

Login to ALICE with Putty

From ALICE Documentation

Set up PuTTY configuration

Windows users can make use of the program PuTTY to log on to ALICE. Verify whether PuTTY is already available on your desktop/laptop. Otherwise download and install PuTTY.

In order for PuTTY to correctly handle tunnels, you have to set up two login sessions. The first PuTTY session opens a login to the ssh gateway and sets up a tunnel to allow login to an ALICE login node directly from your Windows desktop. Once this gateway login session is running, you can define a second PuTTY session to log on to one of the ALICE login nodes and define tunnels for that session, for whatever purpose you need.

Open the PuTTY configuration and create a saved session:

  • Host Name: enter the gateway to which you have to log in first: ssh-gw.alice.universiteitleiden.nl
  • Saved Sessions: use a name that you can remember, e.g.: ALICE_GW
  • Click Save

The window now looks something like:

Putty1a.jpg

Go to the tab Connection/SSH/Tunnels and define the tunnels to the ALICE login 1 and login 2 nodes:

  • Source port: 2221
  • Destination: 10.161.0.12:22
  • Click Add
  • Source port: 2222
  • Destination: 10.161.0.13:22
  • Click Add

The window now looks as follows:

Putty2a.jpg

Make sure to save your settings: go back to the main tab Session and click Save.

The above two definitions allow you to set up two other sessions, one to login node 1 and one to login node 2.

To create the definition for login node 1, create another saved session by repeating the above:

  • Host Name: localhost or 127.0.0.1
  • Port 2221
  • Saved Sessions: use a name that you can remember, e.g.: ALICE_login1
  • Click Save

The window now looks something like:

Putty3.jpg

Go to the tab Connection/SSH/Tunnels and set up the tunnel definitions for anything you need:

  • Source port: 8080
  • Destination: 10.161.0.10:443
  • Click Add

The window now looks as follows:

Putty4.jpg

In this case we set up a tunnel to the WEBserver of the management node. This will allow us to open a browser on your windows desktop with the URL: https://localhost:8080.

Make sure to save your settings: go back to the main tab Session and click Save.

To create the definition for login node 2, repeat the above steps for the definition of login node 1 but with the following changes:

  • Use port 2222
  • Saved Sessions: use a name that you can remember, e.g.: ALICE_login2

Login to ALICE by using tunnels

In case you have followed the above configuration steps, you can log on to ALICE login node 1 as follows:

  • First, open the first PuTTY session, load ALICE_GW and open / login to the gateway using your ULCN name and password.
  • Second, open the second PuTTY session, load ALICE_login1 and open the connection to login node 1 using your ULCN name and temporary password
  • You are now logged on to login node 1. You have a Linux prompt from which you can perform your operations. You can also inspect the webpages from the management node web server directly from your desktop.

Keep session alive

Sometimes, and in particular from outside the university, the internet may experience interrupts or intermittent connectivity. This breaks your PuTTY login sessions, thus logging you out from ALICE. To avoid such breaks, you can tell PuTTY to occasionally ping the remote machine to keep your connection alive. This can be done by setting a time on the 'seconds between keepalives' and toggling on the TCP keepalives.

To enable this, go to Connection and fill in a value > 0 in 'seconds between keepalives' and toggle TCP keepalives on as show below:

Putty5.PNG

Make sure to save your settings.