I set up a public notebook server on a remote computer, secured by a password and a self-signed SSL certificate. When I access the domain through my browser, I can access the notebook server after giving my password and accepting the security warning.
However, if I try to access the server through VSCode, I get the following error:
Failed to connect to remote Jupyter notebook. Check that the Jupyter Server URI setting has a valid running server specified. https://my.domain.io:9999/tree Error: Failed to connect to password protected server. Check that password is correct.
I know that the domain and the password are correct since I tested them successfully in the browser. VSCode does show a warning because of the self-signed certificate, but gives the option to ignore the warning so I don't think that this is the reason.
Please, why can't I access my public remote server? Am I supposed to generate a token, or give a particular URL?
Thanks.
Hi @PolishShatter, sorry for the trouble! Were you shown a password prompt after selecting the remote server to connect to? Would you mind providing a GIF of what you did to connect or error logs?
Hi Joyce, thank you for your reply. Amazingly, it just worked when I was recording my screen to show you the bug, after dozens of unsuccessful trials -- you must have good karma.
In case it can help someone in the future, the reason was the URI. You need to put https://my.domain.io:9999/ and not https://my.domain.io:9999/tree. Apparently VSCode does not redirect to the correct page (unlike the browser).
Side question: please, do you know if it is possible to save the password? Currently I have to enter it at every connection.
Thanks!
Glad it works! I'll keep this issue open for our team to discuss whether we'd like to explore saving the password at our weekly triage meeting.
Thanks for the feedback! However, we don't have plans on storing passwords at this time.