yuvipanda / jupyterhub-ssh

SSH Access to JupyterHubs
BSD 3-Clause "New" or "Revised" License
94 stars 29 forks source link

SSH to named servers #28

Open artpik opened 3 years ago

artpik commented 3 years ago

It would be great to be able to connect with SSH not only to the "main" server, but also to the named servers as well: https://jupyterhub.readthedocs.io/en/latest/api/app.html#jupyterhub.app.JupyterHub.allow_named_servers

stubclan commented 2 years ago

@artpik found any solutions/ alternatives? Looking for the same thing

artpik commented 2 years ago

@stubclan no, users have to use SSH to the "main" server only or use a terminal in JupyterHub. SSH to the named servers would be a great feature.

stubclan commented 2 years ago

@artpik I actually successfully managed to connect to named servers. I can share the code if you want.. Github isn't letting me actually create a MR so not sure if we can put it there but yea

artpik commented 2 years ago

@stubclan Wow, really? The code is in your fork, right? https://github.com/stubclan/jupyterhub-ssh/commits/main/jupyterhub_ssh/__init__.py It is so nice of you.

stubclan commented 2 years ago

@artpik yes you found it. Its just sth small I threw together.

Next I'm looking to see if we can specify what type of server while spawning directly via ssh but I'm not seeing any jupyterhub api support so idk

artpik commented 2 years ago

@stubclan Thanks a lot! It is definitely very helpful. I will test it.