title: SSH
category: Server
time: 1731249325350
---

# SSH PortForwarding

## Enable IP PortForwarding
```
sysctl net.ipv4.ip_forward=1
```

## OpenSSH ProxyCommand
```
Host hostname_a
    User user
    Hostname 123.123.123.123

Host hostname_b
    User user
    Hostname 12.13.13.1
    Port 2222
    ProxyCommand ssh -q -W %h:%p hostname_a
```
