Sam's Tech Blog

You can check out any time you like, But you can never leave!'

2019-08-21

SSH Tunnel

How to: tunnel traffic using SSH - terminal command

SSH Tunnel

How to use a linux service on a remote host?
Give this command on the client.

#Tunnel web-browser traffic trough 127.0.0.1:8080 (Socs Host)

ssh -D 8080 root@s1.ic4.eu

#Tunnel MySQL

ssh -L 33061:localhost:3306 root@s1.ic4.eu -f -N

#Tunnel Proxmox

ssh -L 8006:localhost:8006 root@s2.ic4.eu -f -N