Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 684 Bytes

ssh.md

File metadata and controls

30 lines (20 loc) · 684 Bytes

Port forwarding

Local

server -> you machine Exposes ports from server to your local machine (or some other)

ssh -L LOCAL_PORT:localhost:REMOTE_PORT [email protected]

Remote

your machine -> server Exposes port from your machine to the server (great for expsing from NAT)

ssh -R REMOTE_PORT:localhost:REMOTE_PORT [email protected]

Run command on the server:

ssh -tR REMOTE_PORT:localhost:LOCAL_PORT [email protected] python3 ~/sirtunnel.py domain.example.com REMOTE_PORT

Taken from SirTunnel

Sources

https://phoenixnap.com/kb/ssh-port-forwarding