- Infos im HLRS Wiki sind nicht rechtsverbindlich und ohne Gewähr -
- Information contained in the HLRS Wiki is not legally binding and HLRS is not responsible for any damages that might result from its use -

HPE Hawk access: Difference between revisions

From HLRS Platforms
Jump to navigationJump to search
No edit summary
 
(24 intermediate revisions by 7 users not shown)
Line 3: Line 3:
Information on how to set up ssh can be found on our webserver at [[Secure_Shell_ssh | Secure Shell (ssh)]].
Information on how to set up ssh can be found on our webserver at [[Secure_Shell_ssh | Secure Shell (ssh)]].


{{note|text=General access to Hawk has been enabled. Please note system is not in final production state... check [[Hawk_installation_schedule#Terms_of_Use|Terms of use]]. We ask you to provide us with your experience regarding usage and performance.}}
The SSH public key fingerprints are:
 
{| class="wikitable"
<br>
! Type !! Fingerprint
|-
| ECDSA || SHA256:e9baVVjIcaztKSdn30R0Gk5xrta/WP9scQ1GsLsrWC4
|-
| ED25519 || SHA256:832zq3DA5JvYvo39piPXqqt3SA77VjuvF26e8c25d28
|-
| RSA || SHA256:4u+wl6y+ylXxZHjDYt35S9aRk7SMx8U8xc4Jp+NYonk
|-
|}


==Usage==
==Usage==
There are several frontend/login nodes available, access is available using:
There are several frontend/login nodes available, access is available using:
* hawk.hww.hlrs.de
* hawk.hww.hlrs.de
or by seelecting one specific server:
or by seelecting one specific server:
* hawk-login03.hww.hlrs.de
* hawk-login03.hww.hlrs.de
* hawk-login04.hww.hlrs.de
* hawk-login04.hww.hlrs.de
* hawk-login05.hww.hlrs.de
* hawk-login05.hww.hlrs.de
The frontend nodes are intended as single point of access to the entire system. Here you can set your environment, move your data, edit and compile your programs and create batch scripts. Interactive usage like run your program which leads to a high load is NOT allowed on the frontend/login nodes.<BR>
 
 
{{Note|text =
It is highly recommended to use the loadbalancer (hawk.hww.hlrs.de) instead of a specific frontend (hawk-loginxx.hww.hlrs.de), as not all frontends are permanently available}}
 
 
The frontend nodes are intended as single point of access to the entire system. Here you can set your environment, move your data, edit and compile your programs and create batch scripts. If doing so might require an increased number of resources (compiling, creating tarballs of dozens of MBs or more, copying a large amount of data, etc.), please prefix "nice -+19" to the respective command in order to keep the login node responsive for other users! Interactive usage like run your program which leads to a high load is NOT allowed on the frontend/login nodes.<BR>


The compute nodes:
The compute nodes:
* r1?c?t?n?  
* r1?c?t?n?  
for running parallel jobs are only available through the [[Batch_System_PBSPro_(Hawk) | Batch system]] !
for running parallel jobs are only available through the [[Batch_System_PBSPro_(Hawk) | Batch system]] !
== Two-factor authentication with TOTP ==
An optional protection of ssh access with a two-factor authentication (2FA) based on Time-based One-Time-Password (TOTP) is possible.
On login nodes, each user can decide for himself whether access should be secured via TOTP.
In order to be able to use TOTP, a secret must be created. For this we have provided a tool "<font color=blue><tt>generate_2fa_otp.sh</tt></font>". It prints out a secret QR code which needs to be scanned by your cell phone TOTP app or saved into another TOTP-end device like a USB NitroKey. The generated private secret will be activated by the system the following day.
Do not pass on the contents of the file ''user.oath'' in your ''.ssh'' - Directory or the QR code of the ''genertate_2fa_otp.sh'' command. Make sure that nobody has access to this secret. Always use different devices for the login and the generation of the Time based One-Time Password (TOTP)!
==== Example setup using Android smart phone with google authenticator ====
An easy way to configure TOTP using a smart phone is as follows:
Install an authenticator app on your smart phone. In this example
''google authenticator'' is used.
Login on Hawk's frontend system.
Run the command "<font color=blue><tt>generate_2fa_otp.sh</tt></font>" .
Start the authenticator app on your smart phone and
press the '''<big>+</big>''' button to add a new secret.
Select "QR-Code scan" and
scan the QR-code generated by the ''generate_2fa_otp.sh'' command
[[File:TOTP Import Google authenticator.png|thumb|Scan QR-Code to import secret into google authenticator]]
===== daily use =====
Within the login-procedure you will be prompted for the
    One-time password (OATH) for `<your user name>':
open your google authenticator app an insert the 6-digit number for your HLRS Hawk account.
For multiple logins, the secret only needs to be entered the first time you log in. For further logins from the same system, the query is skipped for a certain period of time
{{Note|text =
The OATH token is cached separately for each login node. So in case you use the load balancer you might get asked for an OATH token several times}}

Latest revision as of 10:14, 3 May 2024

Access

The only way to access the HPE Hawk (frontend/login nodes) from outside HWW net is through ssh.
Information on how to set up ssh can be found on our webserver at Secure Shell (ssh).

The SSH public key fingerprints are:

Type Fingerprint
ECDSA SHA256:e9baVVjIcaztKSdn30R0Gk5xrta/WP9scQ1GsLsrWC4
ED25519 SHA256:832zq3DA5JvYvo39piPXqqt3SA77VjuvF26e8c25d28
RSA SHA256:4u+wl6y+ylXxZHjDYt35S9aRk7SMx8U8xc4Jp+NYonk

Usage

There are several frontend/login nodes available, access is available using:

  • hawk.hww.hlrs.de

or by seelecting one specific server:

  • hawk-login03.hww.hlrs.de
  • hawk-login04.hww.hlrs.de
  • hawk-login05.hww.hlrs.de


Note: It is highly recommended to use the loadbalancer (hawk.hww.hlrs.de) instead of a specific frontend (hawk-loginxx.hww.hlrs.de), as not all frontends are permanently available


The frontend nodes are intended as single point of access to the entire system. Here you can set your environment, move your data, edit and compile your programs and create batch scripts. If doing so might require an increased number of resources (compiling, creating tarballs of dozens of MBs or more, copying a large amount of data, etc.), please prefix "nice -+19" to the respective command in order to keep the login node responsive for other users! Interactive usage like run your program which leads to a high load is NOT allowed on the frontend/login nodes.

The compute nodes:

  • r1?c?t?n?

for running parallel jobs are only available through the Batch system !


Two-factor authentication with TOTP

An optional protection of ssh access with a two-factor authentication (2FA) based on Time-based One-Time-Password (TOTP) is possible. On login nodes, each user can decide for himself whether access should be secured via TOTP. In order to be able to use TOTP, a secret must be created. For this we have provided a tool "generate_2fa_otp.sh". It prints out a secret QR code which needs to be scanned by your cell phone TOTP app or saved into another TOTP-end device like a USB NitroKey. The generated private secret will be activated by the system the following day.

Do not pass on the contents of the file user.oath in your .ssh - Directory or the QR code of the genertate_2fa_otp.sh command. Make sure that nobody has access to this secret. Always use different devices for the login and the generation of the Time based One-Time Password (TOTP)!

Example setup using Android smart phone with google authenticator

An easy way to configure TOTP using a smart phone is as follows:

Install an authenticator app on your smart phone. In this example google authenticator is used. Login on Hawk's frontend system. Run the command "generate_2fa_otp.sh" . Start the authenticator app on your smart phone and press the + button to add a new secret. Select "QR-Code scan" and scan the QR-code generated by the generate_2fa_otp.sh command

Scan QR-Code to import secret into google authenticator
daily use

Within the login-procedure you will be prompted for the

   One-time password (OATH) for `<your user name>':

open your google authenticator app an insert the 6-digit number for your HLRS Hawk account. For multiple logins, the secret only needs to be entered the first time you log in. For further logins from the same system, the query is skipped for a certain period of time

Note: The OATH token is cached separately for each login node. So in case you use the load balancer you might get asked for an OATH token several times