[tutorial] ssh tunneling and socks proxy

(baobab)-[alberta@login1 ~]$ salloc -n1 -c4 --partition=shared-cpu --time=12:00:00 --mem=32G
salloc: Pending job allocation 17996383
salloc: job 17996383 queued and waiting for resources
salloc: job 17996383 has been allocated resources
salloc: Granted job allocation 17996383
salloc: Waiting for resource configuration
salloc: Nodes cpu321 are ready for job
(baobab)-[alberta@cpu321 ~]$

It’s working for me:

[root@localhost ~]# ssh -L 20000:localhost:20000 alberta@cpu321.baobab -J alberta@login1.baobab.hpc.unige.ch

Last login: Fri Apr  4 10:53:37 2025
Installed: Thu Feb 20 15:21:55 CET 2025
(baobab)-[alberta@cpu321 ~]$ cd .ssh
(baobab)-[alberta@cpu321 .ssh]$ ll
total 22
-rw------- 1 alberta hpc_users  986 Oct 24  2023 authorized_keys
-rw------- 1 alberta hpc_users   52 Jan 23  2024 config
-rw------- 1 alberta hpc_users 2610 Jan 23  2024 id_rsa_github
-rw-r--r-- 1 alberta hpc_users  575 Jan 23  2024 id_rsa_github.pub
-rw------- 1 root    root      1766 Oct 15  2021 id_rsa_luniplcom2
-rw-r--r-- 1 root    root       408 Oct 15  2021 id_rsa_luniplcom2.pub
-rw-r--r-- 1 alberta hpc_users  575 Sep  1  2023 id_rsa.pub.orig
-rw------- 1 alberta hpc_users 6263 Apr 17 14:10 known_hosts
-rw-r--r-- 1 alberta hpc_users 5607 Dec  9 20:01 known_hosts.old
drwxr-xr-x 2 alberta hpc_users    2 Oct 23  2023 old
(baobab)-[alberta@cpu321 .ssh]$

I think you have an ssh key used by default defined in ~/.ssh/

could you try to rename or backup: id_ed25519 id_ed25519.pub and try again ?
you must not have a default key in .ssh.

(baobab)-[chataint@login1 ~]$ cd .ssh
(baobab)-[chataint@login1 .ssh]$ ls
id_ed25519  id_ed25519.pub  known_hosts  known_hosts.old

Issue related to : [Authentication] modification sshPublicKey managment - #16 by Yann.Sagon