mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Website snapshot
This commit is contained in:
parent
ee0ab66d73
commit
50ec3688a5
281 changed files with 21066 additions and 0 deletions
19
content/blog/sshlocalportforwarding.md
Normal file
19
content/blog/sshlocalportforwarding.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: "SSH Local Port Forwarding"
|
||||
date: 2019-08-06T16:50:00-04:00
|
||||
draft: false
|
||||
---
|
||||
|
||||
There are some services that I don't want to run all the time which makes me not want to open a port for it. One good example of this is [Jupyter Notebooks](https://jupyter.org/). Therefore, what I sometimes do is run it locally and forward the port so that another machine can access it.
|
||||
|
||||
Example command:
|
||||
|
||||
```bash
|
||||
ssh -L 8888:localhost:8888 -N 192.168.0.2
|
||||
```
|
||||
|
||||
The `-L` flag allows you to specify the `localsocket:host:remotesocket`.
|
||||
|
||||
`-N` makes it so that it doesn't execute any additional commands
|
||||
|
||||
Then finally you put the address of the machine you wish to connect to.
|
Loading…
Add table
Add a link
Reference in a new issue