Hi Folks,
I am having some issues setting up my JupyterHub. I will briefly go through my scenario. I want to run my JupyterHub on a machine (127.0.0.1) and store all user’s related information, such as an account, on another remote server (10.0.2.4). I am using sshspawner to spawn my user environment. However, I kept getting error messages like “Error starting server : Invalid OpenSSH certificate.”
Below is what my jupyterhub_config.py looks like:
c.JupyterHub.spawner_class = 'sshspawner.sshspawner.SSHSpawner'
c.SSHSpawner.remote_hosts = ['10.0.2.4']
c.SSHSpawner.remote_host = '10.0.2.4'
c.SSHSpawner.ssh_command = 'ssh'
c.SSHSpawner.ssh_keyfile = '/home/<local username>/.ssh/id_rsa' # this is a private key used to access 10.0.2.4
c.SSHSpawner.remote_host = '/home/<remote username>/get_port.py' # got get_port.py by cloning from https://github.com/NERSC/sshspawner and is located in the remote server
I would like to have JupyterHub automatically create an account on the remote server when I attempt to log in using a new account. Any help is greatly appreciated.
Best,
James