Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Running Notebook over SSH Tunnel #7428

Open
zyll123 opened this issue Jul 19, 2024 · 2 comments
Open

Document Running Notebook over SSH Tunnel #7428

zyll123 opened this issue Jul 19, 2024 · 2 comments

Comments

@zyll123
Copy link

zyll123 commented Jul 19, 2024

I installed Jupyter in a virtual environment on the server using:

pip install jupyterlab

And configured it as follows:

c.LabApp.ip = ''
c.LabApp.password = u'sha1:*******'  # not shown here
c.LabApp.open_browser = False
c.LabApp.port = 8890
c.LabApp.allow_remote_access = True

Then I established an SSH tunnel to access it locally via port 8890:

ssh -L 8890:localhost:8890 your_username@your_server_ip

However, when I enter http://localhost:8890/lab in the browser, it shows "invalid HTTP response." How can I fix the issue? Thanks for your help!

@zyll123 zyll123 added bug status:Needs Triage Applied to issues that need triage labels Jul 19, 2024
@RRosio
Copy link
Collaborator

RRosio commented Jul 23, 2024

Thank you for opening this issue @zyll123! It is not clear what the issue may be but there are many Stackoverflow posts and various tutorials where users report on setting up proper port forwarding with JupyterLab, if you'd like to take a look.
Also, please try asking in the JupyterLab Discourse https://discourse.jupyter.org/c/jupyterlab/17, where you might receive more feedback!

@RRosio RRosio changed the title ERR_INVALID_HTTP_RESPONSE when open the browser for jupyter Document Running Notebook of SSH Jul 30, 2024
@RRosio RRosio changed the title Document Running Notebook of SSH Document Running Notebook over SSH Tunnel Jul 30, 2024
@RRosio
Copy link
Collaborator

RRosio commented Jul 30, 2024

Per triage: We'll accept this as a documentation issue, to document in official docs how to set up running a notebook over an SSH tunnel.

@RRosio RRosio added documentation and removed bug status:Needs Info status:Needs Triage Applied to issues that need triage labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants