Add tip to local forward port from remote host

This commit is contained in:
Claudio Maradonna 2020-07-31 17:04:44 +02:00
parent 75fc188ce7
commit 45b82a06a3
Signed by: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9
1 changed files with 10 additions and 0 deletions

View File

@ -69,6 +69,16 @@ netstat -tupln | grep 20001
You should see your port associated to autossh process :)
### Local port forward
You can use your jump server "c" even to expose locally a web interface of your remote host "b" or something else with:
```bash
ssh -N -L <LOCALPORT>:127.0.0.1:<REMOTEPORT> <TARGET>
```
For example to access the pihole web interface :)
___
## License