Friday, January 09, 2026

ssh: LocalForward in ssh config file

Example to forward vnc 5901 port from server to client's 5903 port:
Host myserver
    HostName serverip
    User ubuntu
    IdentityFile ~/.ssh/private.pem
    LocalForward 5903 localhost:5901