Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2022-09-22 21:28:59
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


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.


CategoryRicottone

Encryption/OpenSSH/Tunnels (last edited 2023-01-09 01:47:11 by DominicRicottone)