This new-ish tool might be of use / interest? https://github.com/yuvipanda/jupyterhub-ssh
On Fri, Dec 18, 2020 at 11:25 PM David Rosenstrauch <[email protected]> wrote: > I've recently set up Jupyter with kubespawner for our team, and it's > working out nicely. However, one of the next requests from the team is to > allow them to ssh into their Jupyter pod, and I'm a little stumped on how > to make that happen. > > Setting up the ssh server listening in the pod seems do-able enough. > However, the challenge is the networking around getting them to connect to > the ssh server running in their pod (and not anyone else's pod). > > My thinking is that I might be able to set up a reverse proxy that > forwards the SSH traffic to the user's pod. But that requires matching the > user's ID to the IP address of their running pod, which I can't see a way > to do. > > I've tried setting up a headless service that selects each of the running > Jupyter pods - and therefore sets up a dns name for them. But the dns name > that gets created is specific to the IP > (<ip_address>.<headless_service>.<namespace>.svc.cluster.local) rather than > the pod's name (jupyter-<user_id>), and so again there's no easy way to tie > that IP back to the user's ID. > > Presumably Jupyter is storing that mapping of username to pod IP somewhere > internally, but I don't see where. > > Any suggestions on how it might be possible to accomplish this? > > Thanks, > > DR > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/903de465-6f99-4868-ac1b-dd4c587460e3n%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/903de465-6f99-4868-ac1b-dd4c587460e3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAD7kTDF%3DVswwBK3zX8KU5PazATXvKsEO2ASCE4wp84V2%2BvrbPQ%40mail.gmail.com.
