Tunnel script
authorAndrew DeFaria <Andrew@DeFaria.com>
Mon, 22 Aug 2016 21:53:48 +0000 (14:53 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Mon, 22 Aug 2016 21:53:48 +0000 (14:53 -0700)
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 [new file with mode: 0755]

diff --git a/bin/tunnel b/bin/tunnel
new file mode 100755 (executable)
index 0000000..2925093
--- /dev/null
@@ -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