|
Size: 89
Comment:
|
Size: 460
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| Portforwarding | Example |
| Line 6: | Line 6: |
| LocalForward 8443 localhost:443 | Host server hostname 1.2.3.4 user username port 2222 LocalForward 8443 localhost:443 |
| Line 8: | Line 12: |
== Restricted shell == AllowTcpForwarding has to be enabled for the use of PermitOpen. {{{ Match User testuser AllowTcpForwarding yes X11Forwarding no PermitTunnel no GatewayPorts no AllowAgentForwarding no PermitOpen localhost:80 ForceCommand read -p "Press enter to exit" }}} |
SSH
Config file
Example
Host server hostname 1.2.3.4 user username port 2222 LocalForward 8443 localhost:443
Restricted shell
AllowTcpForwarding has to be enabled for the use of PermitOpen.
Match User testuser AllowTcpForwarding yes X11Forwarding no PermitTunnel no GatewayPorts no AllowAgentForwarding no PermitOpen localhost:80 ForceCommand read -p "Press enter to exit"