vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

jupyter.allowUnauthorizedRemoteConnection not working - cannot connect to remote with self signed auth

Open BorisTheBrave opened this issue 9 months ago • 0 comments

Applies To

  • [x] Notebooks (.ipynb files)
  • [x] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

I have a remote jupter server set up. It's hosted on vast.ai which configures everything for you.

I should be able to conect to it with https://185.65.93.114:42131/?token=<TOKEN_STRING>

However, this fails with "unable to verify the first certificate"

Image

The problem is that jupyter uses a self-signed certificate.

Image

Enabling setting jupyter.allowUnauthorizedRemoteConnection is meant to fix this (e.g. https://github.com/microsoft/vscode-jupyter/issues/7558). However, it doesn't seem to make a difference.

I confirmed that setting env variable NODE_TLS_REJECT_UNAUTHORIZED=0 and restarting does fix the issue. But this is a cosiderable pain compared with a user setting.

VS Code Version

[Window Title] Visual Studio Code [Main Instruction] Visual Studio Code [Content] Version: 1.98.2 (user setup) Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78 Date: 2025-03-12T13:32:45.399Z (2 wks ago) Electron: 34.2.0 ElectronBuildId: 11161602 Chromium: 132.0.6834.196 Node.js: 20.18.2 V8: 13.2.152.36-electron.0 OS: Windows_NT x64 10.0.19045 [Copy] [OK]

Jupyter Extension Version

2025.2.0

Jupyter logs

None: this is a conneciton issue

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Remote

BorisTheBrave avatar Apr 01 '25 13:04 BorisTheBrave