[Authentication] modification sshPublicKey managment

Dear users,

As part of our ongoing efforts to enhance the HPC clusters at the University of Geneva (Unige), we would like to inform you about upcoming changes regarding the authentication methods for accessing the HPC frontend.

The objective of this operation is to transition to a “full” LDAP authentication system, which directly and dynamically relies on Unige’s IT directory, thereby improving the security of our clusters.

Here are the key changes to be aware of:

Starting on 2023-09-10T22:00:00Z, authentication via SSH key registered in your home directory on the clusters (path: $HOME/.ssh/authorized_keys) will no longer be effective.

To continue connecting via SSH key, you will need to add your SSH public key to Unige’s LDAP directory by following the instructions available at my-account.unige.ch, under the “My SSH public key” section (and follow the provided instructions, which typically involve copying your XXXX.pub key).

We encourage you to make these changes as soon as possible to minimize any disruptions to your access to the clusters.

However, the isis password authentication remains available and unchanged. (==> No actions required)

For any questions, please comment on this topic.

Questions summary:

1. Where can I update my sshPublicKey:

For users (Students / collaborators / external) having a ISIS account: my-account.unige.ch
For Outsider: applicant.unige.ch/main/outsider-info/update

2. Is there any possibility to keep our accounts accessible from more than one ssh key?

It’s possible to have multiple sshPuclicKey registered on LDAP server. However, my-account.unige.ch doesn’t allow this at the moment (work in progress). In the meantime, you can send us your request or contact the LDAP team directly. mailto:dl-distic-windows-team@unige.ch

:warning: After requesting an additional sshPublicKey, if you update it via my-account, all previous references will be overwritten.

3. When I tried to update my ssh public Key I get an error message:

Le format ou la valeur n’est pas correct/The format or value is not correct".
It seems it’s not working on safari, try firefox or chrome.


Best Regards,


HPC Team
Adrien. A Gaël. R Yann. S

The page https://my-account.unige.ch/main/home rejects my key with the message “Le format ou la valeur n’est pas correct”. To be sure, I generated a new key with ssh-keygen on MacOS 10.14.6. The new key works for logging into baobab but is still rejected. Any hint?
Best
Christophe B.

PS: The format of my key is
ssh-rsa AAAAB …(372 characters in total)… MXDpX christophe@MacBook-Pro-de-Christophe.local

Hi,
The Unige LDAP page seems to only allow one single public ssh key to be added. For historical (and safety) reasons, I have been using different ssh key-pairs on different machines. Is there any possibility to keep our accounts accessible from more than one ssh key?
All the best, Paul

1 Like

Dear All,

These questions have been escalated to the Actvive Diresctory (= LDAP)Team. I keep you inform about it as soon as I have the answer.

The decision to bind the sshPublicKey from LDAP is intended to enhance security and keep a dynamical authentication process .

@Christophe.Berthod Are you sure you’ve copied the right (xxx.pub) public key? (without a space at the end, for example.) Could you give me the command you use to generate your key?

Thank you. I just found that it may be a browser issue. It didn’t work in Safari, but it worked in Firefox (?).

1 Like

Hi,
What will be the new best practice for large file transfers between baobab and yggdrasil?
For the moment I am using a separate ssh keys for file transfers. I would feel slightly uncomfortable uploading the private “master”-key to anywhere. Is there another more secure way of doing this?

Cheers,
Michael

This can be a nice solution:

image

Other variant is to upload your ssh private key to Baobab protected by a strong passphrase. Of course your private key must be protected the same way when stored on your laptop as we are talking about best practices. :thinking:

ref: [An Illustrated Guide to SSH Agent Forwarding]

1 Like

@Paul.Coppin

I have some update. Let me know if something is not clear. :slight_smile:

Best Regards

2 Likes

Ok, thanks for the information!
I will send an email to the LDAP team.

Dear Users,

The change has been applied, and the SSH method authentication’authorizedKeys’ is no longer available.

We remain available for any questions and needs.

Best Regards,

EDIT
Had to update my wsl ssh config as well and now it works, sorry about the false alarm!

Hi
I have added my public key to the Unige LDAP server per the instructions.
My ssh config points to the same key as well, but I can’t seem to login to baobab.
Am I missing something?

Host jettagging~*
    RemoteCommand apptainer shell --nv -B /srv,/home /home/users/s/senguptd/UniGe/Anomaly/jettagging/container/jettag_image.sif && cd home/users/s/senguptd/UniGe/Anomaly/jettagging/
    RequestTTY yes

Host baobab
    HostName baobab2.hpc.unige.ch
    User senguptd
    IdentityFile c:/Users/admin/.ssh/id_baobab_new
    RequestTTY yes

Host nodebaobab jettagging~nodebaobab
    HostName cpu277
    User senguptd
    ProxyJump baobab
    IdentityFile c:/Users/admin/.ssh/id_baobab_new
    RequestTTY yes

There is a “slight” delay between the key upload and its propagation. You can check which is your active key like that:

(baobab)-[senguptd@login2 ~]$ /usr/bin/sss_ssh_authorizedkeys $USER

Hi,
Did you think about these specfic user which in fact are not a user (applicative user as you named them if I’m not mistaken!) ?
I use one for running Euclid jobs on yggdrasil. But I do no have an isis account for this user so I can not add my SSH public key to Unige’s LDAP directory! how should I proceed?
As now I can not ssh to login1.yggdrasi anymore.
Thanks.
Nicolas.

Dear @Nicolas.Morisset

Please send an email to mailto:dl-distic-windows-team@unige.ch and attach your public key.

Best

Hi, I am having a similar on yggdrasil. I have uploaded my key, but I can’t seem to log in. I am still required to type in my password to enter.

Hi, I’ve just checked: your public key is uploaded and in sync with Yggdrasil. Please show us the details:

  • location of your private key ?
  • are you using an ssh-agent ? If yes, is your key loaded?
  • ssh client ?
  • output of ssh -vvv <your_isis_username>@login1.yggdrasil.hpc.unige.ch

Thanks