Size: 565
Comment:
|
← Revision 3 as of 2023-01-09 01:47:11 ⇥
Size: 569
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= SSH Tunnels = | = OpenSSH Tunnels = |
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.