Ssh to baobab hangs at login

Hello,

Today I tried many times to ssh to baobab2.hpc.unige.ch and it always hangs at login after the following two lines:

monitoring and documentation: http://baobab.unige.ch
support: hpc@unige.ch

what could be the problem?

Thanks in advance.

Hi there,

While Baobab login2 was under heavy stress until 10 minutes ago, your problem is also linked to your ~/.bashrc , where you load some modules .

You should keep the shell initialization as minimal as possible (simply set up the shell and its prompt). If you need to load some other programs, you will do it via a script once the shell is available. This has the advantage of letting you login even if the other programs you need are broken.

Thx, bye,
Luca

Hi Luca,

Thank you so much. However we’re not able to login and we can’t modified the .bashrc and we can’t overwrite the file by scp.

Is there any way we can modify it?

Best Regards,
yao

Hi there,

When I replied to @Zhen.Liu last Friday, I could login via SSH from another internal Baobab machines impersonating himself and I have just successfully tried as well.

@Zhen.Liu 's ~/.bashrc was last modified on 2020-10-03T22:00:00Z , thus I guess there was a temporary ban on his connecting IP (cf. https://baobab.unige.ch/enduser/src/enduser/troubleshooting.html#connection-refused ).

However, your account is still giving problems, probably because of the 100+ processes already running as your user. I thus:

  1. killed all these processes, which took quite a lot of time given that I wanted to be sure no “real work” process was accidentally killed
  2. commented the line source ~/baobab_root_setting.sh in your ~/.bashrc
  3. confirm that you could connect via SSH to login2 after having impersonated yourself on another internal Baobab machine

NB , instead of connecting multiple times, please “share” a single connection with different terminals via the ssh 's ControlMaster option (cf. Accelerating OpenSSH connections with ControlMaster - Linux.com ).

Thx, bye,
Luca

Hi Luca,

Thank you so much and now I’m able to login now.

I will have a look on the website!

Have a nice day.

Best Regards,
Yao