Can't connect client when runned from Windows Service

Peter Stuge peter at stuge.se
Mon Dec 15 12:05:05 EST 2008


Adriana Rodean wrote:
> "C:/Program Files/OpenSSH/bin/ssh.exe"  -R 40201:localhost:50300 -o
> TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=2 -i id_rsa
> visma at 10.55.40.123
..

> When i run the same script manually it makes the connection to
> linux machine. Is not working when we run it from the application
> that starts as windows service.

First of all, always supply the full path for the id_rsa file so that
the file is found regardless of the current working directory.

Second, run ssh with -N and -T. Check out the ssh(1) man page to
learn more about their meaning. -T is important for all automated
runs.


//Peter


More information about the openssh-unix-dev mailing list