BinAC2/Login: Difference between revisions

From bwHPC Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 20: Line 20:
Login to bwForCluster BinAC 2 is only possible with a Secure Shell (SSH) client for which you must know your [[BinAC2/Login#Username|username]] on the cluster and the [[BinAC2/Login#Hostname|hostname]] of the BinAC 2 login node.
Login to bwForCluster BinAC 2 is only possible with a Secure Shell (SSH) client for which you must know your [[BinAC2/Login#Username|username]] on the cluster and the [[BinAC2/Login#Hostname|hostname]] of the BinAC 2 login node.


For more gneral information on SSH clients, visit the [[Registration/Login/Client|SSH clients Guide]].
For more general information on SSH clients, visit the [[Registration/Login/Client|SSH clients Guide]].


== TOTP Second Factor ==
== TOTP Second Factor ==


At the moment no second factor is needed. We are currently implementing a new TOTP procedure.
At the moment no second factor is needed. TOTP is currently in the staging phase.

Please log into c2fa.binac2.uni-tuebingen.de via ssh using your service user name (see below) and service user password (as configured while registering) and scan the QR code with an authenticator app like "Google authenticator", "FreeOPT", "FreeOTP+", ...

ssh <username>@c2fa.binac2.uni-tuebingen.de

Important! The QR code will only be shown once!
As soon as you created a second factor, please keep it as confidential as your service password and never share it with anyone else.

In case you need a new QR code, please open a ticket in the support portal https://bw-support.scc.kit.edu.
We will not respond to other means of contact in this case as we are unable to verify the authenticity of the request.


<b>Information for the transition phase:</b> There is a dedicated test login node for verifying your OTP setup:

ssh -p 2227 <username>@login.binac2.uni-tuebingen.de

This node has no Lustre file system mounted and does also not accept batch system commands.

<b>Q</b>: Why does FreeOPT claim that the token is insecure?
<b>A</b>: The generated token uses the SHA-1 algorithm. This algorithm is theoretically vulnerable to collision attacks. As the TOTP is only used as secondary credential, this is a purely hypothetical risk.


== Username ==
== Username ==
Line 33: Line 53:
<b>Example</b>: If your local username at your University is <code>ab123</code> and you are a user from Tübingen University, your username on the cluster is: <code>tu_ab123</code>.
<b>Example</b>: If your local username at your University is <code>ab123</code> and you are a user from Tübingen University, your username on the cluster is: <code>tu_ab123</code>.


== Hostnames ==
== Hostname ==


BinAC 2 has one login node serving as a load balancer. We use DNS round-robin scheduling to load-balance the incoming connections between the actual three login nodes. If you are logging in multiple times, different sessions might run on different login nodes and hence programs started in one session might not be visible in another sessions.
BinAC 2 has one login node serving as a load balancer. We use DNS round-robin scheduling to load-balance the incoming connections between the actual three login nodes. If you are logging in multiple times, different sessions might run on different login nodes and hence programs started in one session might not be visible in another sessions.
Line 61: Line 81:


Most Unix and Unix-like operating systems like Linux or MacOS come with a built-in SSH client provided by the OpenSSH project.
Most Unix and Unix-like operating systems like Linux or MacOS come with a built-in SSH client provided by the OpenSSH project.
Windows 10 and Windows also come with a built-in OpenSSH client.
Windows 10 and Windows 11 also come with a built-in OpenSSH client.


For login use one of the following ssh commands:
For login use one of the following ssh commands:
Line 88: Line 108:
After that click on 'ok'. Then a terminal will open where you can enter your credentials.
After that click on 'ok'. Then a terminal will open where you can enter your credentials.


== Host key fingerprints ==

When you connect for the first time, <code>ssh</code> asks you to confirm the host key.
Compare the fingerprint shown with this list and only answer <code>yes</code> if it matches.
All three login nodes use the same host keys.

{| class="wikitable"
! Key type !! Fingerprint
|-
| ECDSA || <code>SHA256:pkr7H3pyNTt2LJVqqCl+Ibgoa7iTCL1uF/X65rvkeaM</code>
|-
| ED25519 || <code>SHA256:ou2j+OL5pd+Tdb3PLBMmgBko0BO3Ywbs502biY9RVp0</code>
|-
| RSA || <code>SHA256:xmhzbDswd1QhZT2kJcngaCXs9769TiOA/hl6Bk2mq0Y</code>
|}


If <code>ssh</code> warns '''REMOTE HOST IDENTIFICATION HAS CHANGED''', do not connect.
Contact us first.





Latest revision as of 06:53, 16 November 2026

Attention.svg

Access to bwForCluster BinAC 2 is only possible from IP addresses within the BelWü network which connects universities and other scientific institutions in Baden-Württemberg. If your computer is in your University network (e.g. at your office), you should be able to connect to bwForCluster BinAC 2 without restrictions. If you are outside the BelWü network (e.g. at home), a VPN (virtual private network) connection to your University network must be established first. Please consult the VPN documentation of your University.

Prerequisites for successful login:

You need to have


Login to bwForCluster BinAC 2

Login to bwForCluster BinAC 2 is only possible with a Secure Shell (SSH) client for which you must know your username on the cluster and the hostname of the BinAC 2 login node.

For more general information on SSH clients, visit the SSH clients Guide.

TOTP Second Factor

At the moment no second factor is needed. TOTP is currently in the staging phase.

Please log into c2fa.binac2.uni-tuebingen.de via ssh using your service user name (see below) and service user password (as configured while registering) and scan the QR code with an authenticator app like "Google authenticator", "FreeOPT", "FreeOTP+", ...

ssh <username>@c2fa.binac2.uni-tuebingen.de

Important! The QR code will only be shown once! As soon as you created a second factor, please keep it as confidential as your service password and never share it with anyone else.

In case you need a new QR code, please open a ticket in the support portal https://bw-support.scc.kit.edu. We will not respond to other means of contact in this case as we are unable to verify the authenticity of the request.


Information for the transition phase: There is a dedicated test login node for verifying your OTP setup:

ssh -p 2227  <username>@login.binac2.uni-tuebingen.de

This node has no Lustre file system mounted and does also not accept batch system commands.

Q: Why does FreeOPT claim that the token is insecure? A: The generated token uses the SHA-1 algorithm. This algorithm is theoretically vulnerable to collision attacks. As the TOTP is only used as secondary credential, this is a purely hypothetical risk.

Username

Your <username> on BinAC 2 consists of a prefix and your local username. For prefixes please refer to the Username Guide.

Example: If your local username at your University is ab123 and you are a user from Tübingen University, your username on the cluster is: tu_ab123.

Hostname

BinAC 2 has one login node serving as a load balancer. We use DNS round-robin scheduling to load-balance the incoming connections between the actual three login nodes. If you are logging in multiple times, different sessions might run on different login nodes and hence programs started in one session might not be visible in another sessions.

Hostname Destination
login.binac2.uni-tuebingen.de one of the three login nodes

You can choose a specific login node by using specific ports on the load balancer. Please only do this if there is a real reason for that (e.g. connecting to a running tmux/screen session).

Port Destination
2221 login01
2222 login02
2223 login03

Usage: ssh -p <port> [other options] <username>@login.binac2.uni-tuebingen.de

Login with SSH command (Linux, Mac, Windows)

Most Unix and Unix-like operating systems like Linux or MacOS come with a built-in SSH client provided by the OpenSSH project. Windows 10 and Windows 11 also come with a built-in OpenSSH client.

For login use one of the following ssh commands:

ssh <username>@login.binac2.uni-tuebingen.de

To run graphical applications on the cluster, you need to enable X11 forwarding with the -X flag:

ssh -X <username>@login.binac2.uni-tuebingen.de

For login to a specific login node (here: login03):

ssh -p 2223 <username>@login.binac2.uni-tuebingen.de

Login with graphical SSH client (Windows)

For Windows we suggest using MobaXterm for login and file transfer.

Start MobaXterm and fill in the following fields:

Remote name              : login.binac2.uni-tuebingen.de
Specify user name        : <username>
Port                     : 22

After that click on 'ok'. Then a terminal will open where you can enter your credentials.

Host key fingerprints

When you connect for the first time, ssh asks you to confirm the host key. Compare the fingerprint shown with this list and only answer yes if it matches. All three login nodes use the same host keys.

Key type Fingerprint
ECDSA SHA256:pkr7H3pyNTt2LJVqqCl+Ibgoa7iTCL1uF/X65rvkeaM
ED25519 SHA256:ou2j+OL5pd+Tdb3PLBMmgBko0BO3Ywbs502biY9RVp0
RSA SHA256:xmhzbDswd1QhZT2kJcngaCXs9769TiOA/hl6Bk2mq0Y

If ssh warns REMOTE HOST IDENTIFICATION HAS CHANGED, do not connect. Contact us first.