Windows XP autossh: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| No edit summary | No edit summary | ||
| Line 17: | Line 17: | ||
| cygrunsrv -I AutoSSH -f "Autossh tunnel" -t auto -y tcpip -O -u $USER -w $PASS -p /usr/bin/autossh -a "-M 20007 -R 12003:127.0.0.1:3389 $USER@$SERVER -p 15266 -g2CN" -e AUTOSSH_NTSERVICE=yes | cygrunsrv -I AutoSSH -f "Autossh tunnel" -t auto -y tcpip -O -u $USER -w $PASS -p /usr/bin/autossh -a "-M 20007 -R 12003:127.0.0.1:3389 $USER@$SERVER -p 15266 -g2CN" -e AUTOSSH_NTSERVICE=yes | ||
| </pre> | </pre> | ||
| = Update = | |||
| Follow this howto and adjust line from there to have the extra triggers from above if you want to skip those steps. | |||
| http://www.matthanger.net/2008/04/creating-persistent-ssh-tunnels-in.html | |||
Revision as of 19:44, 3 June 2011
Windows XP and Autossh
First off, one needs cygwin. Download from here:
http://www.cygwin.com/
Select setup and be sure to select Autossh from the Net list.
All required dependencies will be automatically installed as well.
Connection string (cygwin)
cygrunsrv -I AutoSSH -f "Autossh tunnel" -t auto -y tcpip -O -u $USER -w $PASS -p /usr/bin/autossh -a "-M 20007 -R 12003:127.0.0.1:3389 $USER@$SERVER -p 15266 -g2CN" -e AUTOSSH_NTSERVICE=yes
Update
Follow this howto and adjust line from there to have the extra triggers from above if you want to skip those steps. http://www.matthanger.net/2008/04/creating-persistent-ssh-tunnels-in.html