OpenSSH Tunnels
Contents
Usage
To forward mail over a tunnel, try:
ssh -N -f -L 9025:smtp.server.name:25 ssh.server.name
The -f option forks the ssh(1) process into the background.
Configuration
On the server-side sshd(8), there are some options that need to be enabled.
AllowTCPForwarding must either be commented out (i.e. left as default) or set to yes.
PermitOpen must either be commented out (i.e. left as default) or set to any.