Re: cannot start sshd on cygwin- win xp



Darren Dunham wrote:

jameshanley39@xxxxxxxxxxx <jameshanley39@xxxxxxxxxxx> wrote:
Darren Dunham wrote:

It is meant to. I'm supposing that the start is failing. Perhaps
(as >> an administrator) you could try /usr/sbin/sshd -d and see if
you see >> any error messages.

I don`t know if it writes errors to a file somewhere - I doubt it
`cos *nix philosophy. But nothing comes on the screen.

That's quite odd then. It should be a normal debug printout...

$ uname -s
CYGWIN_NT-5.1
$ /usr/sbin/sshd -d
debug1: sshd version OpenSSH_4.6p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
[...]

Can you strace it?

$ strace /usr/sbin/sshd -d

$ uname -s
CYGWIN_NT-5.1

--
good thinking batman, looks like you hit a nerve
on doing strace
A box came up in windows saying
"
sshd.exe Unable to locate component
This application has failed to start because cygcrypto-0.9.8.dll was
not found. Re-installing the application may fix the problem.
"
I got that message and these messages below, every time I did the strace

in cygwin,
$ strace /usr/sbin/sshd -d
--- Process 736, exception C0000135 at 77F95C64

Current user@bobyc /usr/sbin
$ strace /usr/sbin/sshd -d
--- Process 3036, exception C0000135 at 77F95C64

Current user@bobyc /usr/sbin
$ strace /usr/sbin/sshd -d
--- Process 3948, exception C0000135 at 77F95C64



I did
c:\cygwin>dir *.dll /s
the closest I got was
cygcrypt-0.dll

C:\WINDOWS>dir cyg*.dll /s >a
File Not Found

do you have the file cygcrypto-0.9.8.dll in your cygwin\bin ?

thanks
.



Relevant Pages

  • Re: SSH not working
    ... debug1: sshd version OpenSSH_3.6.1p2 ... debug1: read PEM private key done: type RSA ... RSA key generation complete. ...
    (alt.os.linux)
  • Re: cannot start sshd on cygwin- win xp
    ... any error messages. ... debug1: read PEM private key done: type RSA ... RSA key generation complete. ...
    (comp.security.ssh)
  • Re: Assertion failuers
    ... And it turns out that with ssh it's either kerb auth or password auth that ... debug1: read PEM private key done: type RSA ... RSA key generation complete. ...
    (comp.protocols.kerberos)
  • Re: openssh-3.3p1 fails under Sparc linux
    ... but dies immediately upon receiving a remote connection. ... > debug1: read PEM private key done: type RSA ... > RSA key generation complete. ...
    (comp.security.ssh)
  • Re: openssh-3.3p1 fails under Sparc linux
    ... but dies immediately upon receiving a remote connection. ... > debug1: read PEM private key done: type RSA ... > RSA key generation complete. ...
    (comp.security.ssh)