Cannot connect to jupyter notebook
The job is submitted, the jupyter notebook started, but impossible to connect to it in the browser.
Looking in the logs, there is a "permission denied" error. Tracking down the issue further, the error happens with the command:
ssh -R$TUNNELPORT:localhost:$NOTEBOOKPORT $SLURM_SUBMIT_HOST -N -f
i.e. the script cant establish a reverse tunnel from submitted job back to interactive node.
Other observations:
- "ssh login01.pik-potsdam.de" and "ssh login02.pik-potsdam.de" work from my local machine whereas
- "ssh login01" and "ssh login02" do not work from an interactive node (permission denied)
The solution is to add the public key into "authorized_keys":
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
(self-authorization!)