Document Running Notebook over SSH Tunnel
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
I installed Jupyter in a virtual environment on the server using:
```bash
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!
Contributor guide
Research direction
The issue names JupyterLab configuration and an SSH -L tunnel but no repository file, test, or code entry point. Start by reproducing the localhost:8890/lab request through the shown tunnel and compare the browser response with the server setup; done would mean identifying a documented fix for the invalid HTTP response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, jupyter-notebook
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100