YL-Blog
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    <p style="text-align: center"><b><font size=5 color=blueyellow>Login to Leonardo Booster Cluster</font></b></p> **Contribution**: <a><img src="https://img.shields.io/badge/ENCCS-blue?style=plastic"/></a> **Categories**: <a><img src="https://img.shields.io/badge/Blogpost-996300?style=plastic"/></a> <a><img src="https://img.shields.io/badge/CINECA-green?style=plastic"/></a> <a><img src="https://img.shields.io/badge/Leonardo Booster-3232ff?style=plastic"/></a> <a><img src="https://img.shields.io/badge/UserDB portal-aqua?style=plastic"/></a> <a><img src="https://img.shields.io/badge/2FA/OPT-red?style=plastic"/></a> <a><img src="https://img.shields.io/badge/smallstep-gold?style=plastic"/></a> **Contents of this document and quicklinks**: [TOC] --- ## 1. Registration at the CINECA UserDB portal In order to have access on Leonardo, it is necessary to complete the registration procedure on [CINECA UserDB portal](https://userdb.hpc.cineca.it) - Click on the "Create a New User" button and filling in the required fields - Uploading an ID card (**passport for non-Italian**) in the Documents for HPC tab, complete the information about your Institution and check your Personal Data. - Your CINECA ID looks like **YOUR.NAME_xxxxx [uid: xxxxx]**, in which **xxxxx** is a 5-digit string consising of numbers. ## 2. Association your account with an active project Send your ID account at CINECA to the project leader and ask for the access to an existing project. ## 3. Request to access to an CINECA HPC cluster - Once your username has been associated with an active account, you can request access to an CINECA HPC clusters. - Make sure following info are **OK**, see the figure below. - Personal data - Institution - HPC DOCs - Authorization ![hpc_access](https://hackmd.io/_uploads/rk-der62a.png) - Clicking the button **Submit** on your HPC Access page. - **Wait for several hours .....** - Once approved your request, you will receive two emails - one email with the **username** - another with the link to a page showing how to - configure the **two-factor authentication (2FA)** - configure the **OTP** - an exmaple of this email is shown below ![email_from_cineca](https://hackmd.io/_uploads/rJ96lrThp.png) > **OBS**: The link for the configuration of 2FA has a duration of only 24 hours. After its expiration you need to write to superc@cineca.it to get a new valid link. --- ## 4. Configuration of 2FA and OTP Two-factor authentication (2FA) refers to an authentication method in which a user is granted access to the CINECA HPC systems only after successfully presenting two pieces of evidence (or factors). Verifying your identity, using an independent second factor, prevents other users from logging in with your identity, even if they have the password. Therefore, the two-factor authentication (2FA) adds a further level of security to the authentication for access to services based on the Identity Provider. The detailed procedures for the configuration of **2FA** and **OTP** are available [HERE](https://wiki.u-gov.it/confluence/display/SCAIUS/How+to+activate+the+2FA+and+configure+the+OTP). The last step, once you have successfully inserted the 6-digit code from **FreeOPT/Goolge Authentiator**, you will get the **Recovery codes** (shown below). Please save these codes somewhere by downloading, printing or copying in a text file. ![recovery_authentication_codes](https://hackmd.io/_uploads/Sy_WWrTha.png) --- ## 5. Install and configuration of the **smallstep** client Once the 2FA will be enabled as the only method to authenticate on CINECA clusters, you will need to install and configure on your PC a program that allows you to authenticate via 2FA and to download locally the temporary certificate. The CINECA recommends the **smallstep** client. Detailed descriptions are available [HERE](https://wiki.u-gov.it/confluence/display/SCAIUS/How+to+install+the+smallstep+client). - [Setup client step-cli: Linux and Mac users](https://wiki.u-gov.it/confluence/display/SCAIUS/Setup+client+step-cli%3A+Linux+and+Mac+users) - [Setup client step-cli: Windows users](https://wiki.u-gov.it/confluence/display/SCAIUS/Setup+client+step-cli%3A+Windows+users) - **IMPORTANT**: users with Ubuntu operating systems (but may happen also for other Linux distributions) should not run the command "sudo apt install step" because this will install a different software that will give errors when following the below instructions. Below are commands for Linux and Mac users. - Run the command below in your local shell: ```shell $ step ca bootstrap --ca-url=https://sshproxy.hpc.cineca.it --fingerprint 2ae1543202304d3f434bdc1a2c92eff2cd2b02110206ef06317e70c1c1735ecd ``` - you can get similar output as follows: ``` The root certificate has been saved in <path-to>/.step/certs/root_ca.crt. The authority configuration has been saved in <path-to>/.step/config/defaults.json. ``` - Run the command below to activate the ssh-agent ```shell $ eval $(ssh-agent) ``` - Run the command below to obtain the certificate ```shell $ step ssh login 'USER@EMAIL' --provisioner cineca-hpc ``` - This command will report an output on the shell as follows: ![ssh_agent_yes](https://hackmd.io/_uploads/HyKI-Baha.png) - This also leads to a webpage on your default web browser. - You should input your cluster credentials (username and password) and then click the button **Sign in** ![signin_to_your_account](https://hackmd.io/_uploads/HJuo-HTnp.png) - The keycloak page will ask for the OTP code generated by the FreeOTP/Google Authenticator ![username](https://hackmd.io/_uploads/rkNAWH6nT.png) - Once authenticated, you will see a **Success** message on your browser. ![success](https://hackmd.io/_uploads/Hkz-zHTna.png) - <font color=red>**IMPORTANT**</font>: The the temporary certificate is valid for 12 hours. If you reboot your computer, the certificate is lost and you need to download a new one launching again the **step ssh login ...** command. - Run the command at the terminal ```shell $ ssh USERNAME@login.leonardo.cineca.it ``` - if everything work well, you can come to the leonardo cluster. --- ## 6. Managing password, 2FA and OTP More details about change the password, recover one-time password generator, as well as renew the recovery codes are available [HERE](https://wiki.u-gov.it/confluence/display/SCAIUS/Managing+password%2C+2FA+and+OTP). --- ## 7. Solution to error message **WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!** During the 12-hour window, the temporary certificate generated at **Step 5** works if you do not reboot your computer. - If you reboot your computer, you need to download a new one launching again the **step ssh login ...** command - If you log out the cluster, and want to login again to the LB cluster, you might got an error message like `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` - If this happens, you can find the `known_hosts` file at the ~/.ssh directory. - In this file, you will see three lines containing `cineca` related information. ![search_cineca](https://hackmd.io/_uploads/S1VtzST3p.png) - <font color=red>**Delete these three lines**</font> and save the file before you exit. - Run the command `ssh USERNAME@login.leonardo.cineca.it`, you can relogin to the LB cluster. --- ## 8. Login nodes on LB cluster Leonardo have 4 login node as shown below, you can use `login.leonardo.cineca.it` for login and you will "randomly" choose one of login node. | Column 1 | hostname | | :------: | :------: | | login | login.leonardo.cineca.it | | login1 | login01-ext.leonardo.cineca.it | | login2 | login02-ext.leonardo.cineca.it | | login5 | login05-ext.leonardo.cineca.it | | login7 | login07-ext.leonardo.cineca.it | If you want to login to LB cluster from a specific login node each time, you can setup a configure file at` ~/.ssh/config` (for mac computer) ```config Host Leonardo7 HostName login07-ext.leonardo.cineca.it StrictHostKeyChecking no UserKnownHostsFile /dev/null User your_user_name_on_Leonardo ControlMaster auto ControlPath ~/.ssh/cm-%r@%h:%p ControlPersist 2h ``` - remember to change **your_user_name_on_Leonardo** above - `UserKnownHostsFile /dev/null` will avoid the error - after this setup, you can just type `ssh Leonardo7` at the terminal for your login to the LB cluster. :::danger :::

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully