| 74 | * ssh port forwarding |
| 75 | * [源起] 許多機器往往因為網路環境的緣故(Ex: 在防火牆背後 或 浮動位址)而無法直接存取 SSH port. 此時可以採用 |
| 76 | {{{ |
| 77 | GatewayPorts |
| 78 | Specifies whether remote hosts are allowed to connect to ports |
| 79 | forwarded for the client. By default, sshd binds remote port |
| 80 | forwardings to the loopback address. This prevents other remote |
| 81 | hosts from connecting to forwarded ports. GatewayPorts can be |
| 82 | used to specify that sshd should allow remote port forwardings to |
| 83 | bind to non-loopback addresses, thus allowing other hosts to con‐ |
| 84 | nect. The argument may be “no” to force remote port forwardings |
| 85 | to be available to the local host only, “yes” to force remote |
| 86 | port forwardings to bind to the wildcard address, or |
| 87 | “clientspecified” to allow the client to select the address to |
| 88 | which the forwarding is bound. The default is “no”. |
| 89 | </pre> |
| 90 | }}} |