/notebook/ssh/port-forwarding-cheatsheet

Port Forwarding Cheatsheet


ssh -L (localport):localhost:(remoteport) -C -N -l (username) hostname.domain -p (sshport)

VNC Example

ssh into port 22 on mydynamichost.ddns.net and map the remote computer's port 5901 to my local port 59000

ssh -L 59000:localhost:5901 -C -N -l username mydynamichost.ddns.net -p 22

Contents

About

I am an engineer and educator, having spent ten years as a professor. My goal is to help you build your knowledge of design and technology, get your hardware working, and propel your startup or small business. Get in touch!