SSH tunnels ๐Ÿš‡

explains use cases and examples of SSH tunnels - A visual guide to SSH tunnels / HN

# ssh

ssh -N -L [local_port]:127.0.0.1:[remote_port] 100.69.234.21

# Port forwarding โฎบ

# autossh

see Automatiser tunnel SSH

# ssh-config
Host bastion
    ServerAliveInterval 30
    ServerAliveCountMax 3
    TCPKeepAlive yes

Notable

  • sshuttle / doc - route an entire subnet over SSH - did not understand what id does
  • systemd user services + Cockpit (surprisingly nice) - with restrictions for user services
  • or custom tools

# see also

Written on February 7, 2021, Last update on September 2, 2026
ssh network-security