Sample g batch file to start ssh sessions and set up tunnels for email traffic

Assuming that the email server is at at private IP address192.168.1.4 behind firewall.

The following batch file will setup tunnels for
port 110 (POP3 mail),
port 25 (for outgoing email SMTP traffic).

@echo off
c:
cd c:\cygwin\bin
bash --login -c "ssh -l  root  outside_ipaddress  -L 
110:192.168.1.4:110 -L  
25:192.168.1.4:25 "

g

Disclaimer

© 2002-2007 Nicholas Fong

Last revision date:  June 14, 2007