SSH Tunneling: Difference between revisions
(Created page with "== Background == SSH port forwarding is a mechanism in SSH for tunneling application ports from the client to the server, or servers to clients. It can be used for adding encryption to legacy applications, going through firewalls, and some system administrators and IT professionals use it for opening backdoors into the internal network. == Enable or disable SSH port forwarding == /etc/ssh/sshd_config has parameter AllowTcpForwarding no|yes Leaving port forwarding e...") |
|||
Line 4: | Line 4: | ||
== Enable or disable SSH port forwarding == | == Enable or disable SSH port forwarding == | ||
/etc/ssh/sshd_config has parameter | /etc/ssh/sshd_config has parameter | ||
AllowTcpForwarding no|yes | AllowTcpForwarding no|yes | ||
Leaving port forwarding enabled can expose the organization to security risks and back-doors. | Leaving port forwarding enabled can expose the organization to security risks and back-doors. | ||
So make sure SSH AllowTcpForwarding is disabled state in your server. | |||
Revision as of 08:55, 4 May 2023
Background
SSH port forwarding is a mechanism in SSH for tunneling application ports from the client to the server, or servers to clients. It can be used for adding encryption to legacy applications, going through firewalls, and some system administrators and IT professionals use it for opening backdoors into the internal network.
Enable or disable SSH port forwarding
/etc/ssh/sshd_config has parameter
AllowTcpForwarding no|yes
Leaving port forwarding enabled can expose the organization to security risks and back-doors.
So make sure SSH AllowTcpForwarding is disabled state in your server.
SSH tunnels are widely used in many enterprise environments that employ mainframe systems as their application backends. In those environments the applications themselves may have very limited native support for security. By utilizing tunneling, compliance with SOX, HIPAA, PCI-DSS, and other standards can be achieved without having to modify the applications.[1]