Host my-server
HostName 10.10.10.1
User ubuntu
# Syntax: LocalForward [local_port] [remote_host]:[remote_port]
LocalForward 8080 127.0.0.1:8080
LocalForward 1234 127.0.0.1:1234
ss -tlnp | grep ssh
See also[edit]
/etc/ssh/ssh_config, ~/.ssh/config (man), RemoteCommand, RequestTTY, ServerAliveInterval, UseKeychain, ForwardAgent, ProxyJump, ControlMaster, ControlPath, ControlPersist
- ssh -L, Port forward, sshuttle, LocalForward