[GRLUG] Cygwin & AutoSSH

L. V. Lammert lvl at omnitec.net
Thu Feb 2 23:29:54 EST 2012


On Thu, 2 Feb 2012, megadave wrote:

> I'm pretty certain all autossh does is run ssh, and ssh is the one
> reading files such as those.
>
Tried it both with a /home path and with a c:\ path to the identity, as
well as no path, .. none work; It *seems* to resolve with the C:\ path as
it does not log a complaint about identity not fount, but in that case it
reports a 'Host Key Validation' error.

> Whats the full text of the command as you are trying to execute it?
> (xx out any sensitive info, of course)
>
Base command:

cygrunsrv -I AutoSSH -f "nagios_link" -p /usr/bin/autossh -a "-p2206
-M 0 -N -R <remote port>:127.0.0.1:2206 -i
/home/<local user>/.ssh/id_rsa nagios at _______.com"

> Does it work when trying to run ssh directly, without autossh?
>
Yep. The Windoze user has administrator rights, .. the only think I can
figure out is that running it as a system service somehow requires that
that known_hosts be accessible to SYSTEM, but I have not been able to
verify, or it does not look for known_hosts in the identity directory for
some really strange reason.

	TFTR,

	Lee

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list