Can't connect client when runned from Windows Service
Jim Knoble
jmknoble at pobox.com
Thu Dec 18 09:36:48 EST 2008
Circa 2008-12-16 03:08 dixit Adriana Rodean:
: Finally good news, made it to work as Network Service and connects
: successfully :)
:
: This is the correct script:
:
: @echo off
: :RUN echo Connecting...
: "C:/Program Files/OpenSSH/bin/ssh.exe" [etc....]
: echo Restarting in 10 seconds...
: GOTO RUN
This looks like you want a persistent SSH tunnel. You might look into
AutoSSH, which is designed for exactly that:
http://www.harding.motd.ca/autossh/
Notable among its features:
- Backs off on rate of connection attempts when experiencing rapid
failures such as connection refused
It's available as a precompiled package in Cygwin <http://www.cygwin.com/>.
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG key ID: C6F31FFA >>>>>> http://www.pobox.com/~jmknoble/keys/ )
(GnuPG fingerprint: 99D8:1D89:8C66:08B5:5C34::5527:A543:8C33:C6F3:1FFA)
+----------------------------------------------------------------------+
|[L]iberty, as we all know, cannot flourish in a country that is perma-|
| nently on a war footing, or even a near-war footing. --Aldous Huxley|
+----------------------------------------------------------------------+
More information about the openssh-unix-dev
mailing list