preloader
Reading time: 1 minute

Secure Tunnel Over SSH

Secure tunnel over SSH. VNC is a good example of an insecure connection.

VNC example
ssh -L 5901:localhost:5901 -N -f ben@x.x.x.x -i sshkey.pem

Use -N -f keep the session running in the backgroud

ssh -L local_port:remote_IP:remote_port

REMOTE PORT FORWARDING

ssh -R 8080:localhost:80 website or ip
Share on: