Actions

Difference between revisions of "Login to cluster"

From ALICE Documentation

(Created page with "To login to the ALICE cluster you need to perform a hop-like login sequence. The two login node of the ALICE cluster cannot be accessed directly. So one needs to first login t...")
 
Line 1: Line 1:
 
To login to the ALICE cluster you need to perform a hop-like login sequence. The two login node of the ALICE cluster cannot be accessed directly. So one needs to first login to an ssh gateway and then to one of the login nodes. This mechanism is required for both login and file transfer operations. Below we describe how to perform these actions from Linux and Windows, separately,
 
To login to the ALICE cluster you need to perform a hop-like login sequence. The two login node of the ALICE cluster cannot be accessed directly. So one needs to first login to an ssh gateway and then to one of the login nodes. This mechanism is required for both login and file transfer operations. Below we describe how to perform these actions from Linux and Windows, separately,
  
Login to ALICE from Linux
+
=== Login to ALICE from Linux ===
 +
The login nodes are named:
 +
login1.alice.leidenuniv.nl (10.161.0.12)
 +
login2.alice.leidenuniv.nl (10.162.0.13)
 +
 
 +
==== Setup ssh JUMP ====
 +
In your linux server write in ~/.ssh/config for instance
 +
Host hpc1
 +
  HostName login1.alice.universiteitleiden.nl
 +
  User <USERNAME>
 +
  ProxyJump <USERNAME>@ssh-gw.leidenuniv.nl:22
 +
 
 +
Host hpc2
 +
  HostName login2.alice.universiteitleiden.nl
 +
  User <USERNAME>
 +
  ProxyJump <USERNAME>@ssh-gw.leidenuniv.nl:22
 +
(put in your own ulcn account name instead of <USERNAME>).
 +
 
 +
Alternatively, if your openssh server isn't that recent and doesn't recognize the ProxyJump alias, try this:
 +
Host hpc1
 +
  HostName login1.alice.universiteitleiden.nl
 +
  ForwardX11 yes
 +
  User <USERNAME>
 +
  ProxyCommand ssh -X <USERNAME>@sshgw.leidenuniv.nl -W %h:%p
 +
Login to ssh-gw.leidenuniv.nl (<code>ssh <USERNAME>@ssh-gw.leidenuniv.nl</code>) and put your public key in
 +
~/.ssh/authorized_keys
 +
Login through to the HPC login1 node <nowiki>''ssh login1.alice.universiteitleiden.nl'</nowiki> and put the same public key in
 +
~/.ssh/authorized_keys
 +
 
 +
==== Direct login to login node 1 ====
 +
  ssh hpc1
 +
and you can even forward X11 now.
 +
 
 +
=== Login to ALICE from Windows ===
 +
<br />

Revision as of 18:58, 28 June 2019

To login to the ALICE cluster you need to perform a hop-like login sequence. The two login node of the ALICE cluster cannot be accessed directly. So one needs to first login to an ssh gateway and then to one of the login nodes. This mechanism is required for both login and file transfer operations. Below we describe how to perform these actions from Linux and Windows, separately,

Login to ALICE from Linux

The login nodes are named:

login1.alice.leidenuniv.nl (10.161.0.12)
login2.alice.leidenuniv.nl (10.162.0.13)

Setup ssh JUMP

In your linux server write in ~/.ssh/config for instance

Host hpc1 
  HostName login1.alice.universiteitleiden.nl
  User <USERNAME>
  ProxyJump <USERNAME>@ssh-gw.leidenuniv.nl:22
  
Host hpc2
  HostName login2.alice.universiteitleiden.nl
  User <USERNAME>
  ProxyJump <USERNAME>@ssh-gw.leidenuniv.nl:22

(put in your own ulcn account name instead of <USERNAME>).

Alternatively, if your openssh server isn't that recent and doesn't recognize the ProxyJump alias, try this:

Host hpc1 
  HostName login1.alice.universiteitleiden.nl
  ForwardX11 yes
  User <USERNAME>
  ProxyCommand ssh -X <USERNAME>@sshgw.leidenuniv.nl -W %h:%p

Login to ssh-gw.leidenuniv.nl (ssh <USERNAME>@ssh-gw.leidenuniv.nl) and put your public key in

~/.ssh/authorized_keys

Login through to the HPC login1 node ''ssh login1.alice.universiteitleiden.nl' and put the same public key in

~/.ssh/authorized_keys

Direct login to login node 1

 ssh hpc1

and you can even forward X11 now.

Login to ALICE from Windows