From 0095d976fa060ec68f27864b64a6957c3a00a078 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Mon, 22 Aug 2016 14:53:48 -0700 Subject: [PATCH] Tunnel script Simple script to use ssh to tunnel ports for IMAP (1143 -> 143) and SMTP (1025 -> 25) to defaria.com so I can read and write email to my home server. Note -Nf puts ssh in the background after establishing the tunnel. --- bin/tunnel | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/tunnel diff --git a/bin/tunnel b/bin/tunnel new file mode 100755 index 0000000..2925093 --- /dev/null +++ b/bin/tunnel @@ -0,0 +1,7 @@ +#!/bin/bash +# +# Simple script to use ssh to tunnel ports for IMAP (1143 -> 143) and SMTP (1025 -> 25) +# to defaria.com so I can read and write email to my home server. +# +# Note -Nf puts ssh in the background after establishing the tunnel. +ssh -Nf -L localhost:1025:defaria.com:25 -L localhost:1143:defaria.com:143 andrew@defaria.com -- 2.17.1