hooner wrote: > I have problems running autossh via cygrunsrv on WIN2003: > > /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 20000 -g2CN -R > 20120:localhost:3389 -i /etc/key-rsa -p 20012 u...@192.168.100.12" -e > AUTOSSH_NTSERVICE=yes -y tcpip --type auto > > As soon as I start the service (net start autossh) it stops. So it looks > like it never came up: > Autossh.log: > 2009/01/08 23:26:25 autossh[10148]: starting ssh (count 1) > 2009/01/08 23:26:25 autossh[10148]: ssh child pid is 9528 > Host key verification failed. > 2009/01/08 23:26:25 autossh[10148]: ssh exited prematurely with status 255; > autossh exiting > > Running just ssh or autossh the tunnel comes up and stays: > ssh: ssh -v -g2CN -R 20120:localhost:3389 -i /etc/key-rsa -p 20012 > u...@192.168.100.12 > autossh: /bin/autossh -M 20000 -g2CN -R 20120:localhost:3389 -i /etc/key-rsa > -p 20012 u...@192.168.100.12
There's a big difference between running it as a service like you did, and running it as a user. First thing to try: run the service as your user, i.e. add --user <user name> to the service installation. And don't expect too much, I use it all the time and it works but it fails to start very often, I end up starting it manually. -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/