Closed priamai closed 1 year ago
This issue has been mentioned on Jupyter Community Forum. There might be relevant details there:
https://discourse.jupyter.org/t/permission-denied-on-ssh-keys/13107/1
This was cross-posted to https://discourse.jupyter.org/t/permission-denied-on-ssh-keys/13107/3 The problem was resolved though no answer was given.
Proposed change
When user creates their own ssh keys to interact with gitlab they will be stored in the home .ssh hidden folder. I don't want the user to regenerate their ssh keys every time we restart the docker so I attempted this:
c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir,'ssh-home-{username}':{'bind':'/home/jovyan/.ssh','mode':'ro'} }
However when I try to generate the keys:
I am not sure how should I set the permissions on the docker volume or elsewhere?