I run an Openssh sshd service from Cygwin. When an RSA connection is established:
$ ssh Administrator@ZETA
Last login: Wed May 11 13:58:50 2016 from 10.1.1.140
-- there is no error message.
However, when I use an inline command:
$ ssh Administrator@ZETA "echo hi"
hi
-- the command works, but on ZETA the Windows Event Log now says:
sshd: PID 7068: error: get_socket_address: getnameinfo 2 failed: Unknown error
Calling this often fills the Event Log with errors.
Starting sshd on command line in debug mode:
/usr/sbin/sshd -ddd
-- produces no error. It also runs under different user and I had to chown administrator /var/empty
for it to work.
Trying to start sshd in debug mode as Windows service, as recommended in https://cygwin.com/ml/cygwin/2014-03/msg00488.html fails:
$ /usr/bin/cygrunsrv -I sshd -d "CYGWIN sshd_debug" -p /usr/sbin/sshd -a "-D -d -d -d" -y tcpip
/usr/bin/cygrunsrv: Error installing a service: OpenService: Win32 error 1073: The specified service already exists.