ssh into notebooks
Request: Be able to ssh into a running notebook
Problem:
- Notebooks are containers running in a private overlay network (in our docker swarm).
- containers are not designed for running daemons (like ssh)
- There is no possibility to reach the container from outside (reach outside from the container is no issue)
- The notebook is a standalone server and users need to be able to authenticate to their container
Possible solutions:
- Notebooks
- running ssh
- Let the user start a script that forks off ssh (and potentially does the proxying bootstrap)
- Private network
- Set up a proxy with a public IP that the notebook connects to and setup a reverse tunnel
- Create a vpn (wireguard etc) server that all notebooks connect to and can be reachable from there
- Configure "docker swarm proxy" that does the portforwarding to the correct container.
- running ssh
- Authentication
- the users need to manually configure the ssh key (or alternatively downloads it from git.cs.kau.se)
- Need to configure a trust between the container and the proxy
- Publish a unique port to each user that forwards to the container port 22
Edited by Jonas Karlsson