Re: Cgywin sshd: immediate disconnect

From:
Date: 06/11/02


Date: Tue, 11 Jun 2002 22:21:05 +0200


"Paul A. Steckler" <steck@stecksoft.com> a écrit dans le message de news:
%ePM8.65491$KD3.2401871@typhoon.ne.ipsvc.net...
> I'm running Cygwin sshd on Windows XP, installed by ssh-host-config.
>
> With sshd installed as an NT service, even when I ssh to localhost, I get
an
> immediate disconnect after a successful authentication. Of course, I get
a
> similar error when ssh'ing from a remote host.
>
> I saw something on a Web page about removing Registry entries that
indicate
> mount points
> for Cygwin, in order to fix this problem. That didn't help, and it messed
> up accessing
> drive letters in the Cygwin shell!
>
> I've also run sshd manually with /usr/sbin/sshd -d. Strangely enough, I
can
> connect to localhost
> when sshd is run that way, although I get errors about no home directory.
> So much for trying to
> debug the connection.

When you launch sshd manually, it is run with your user. So sshd accept to
change the context from you to you.
If sshd is launch as a service, it uses the system account. Though if you
use public key (and no password), the authentication works fine, but when
spawning the process with the according right, it fails.

It seems to be a problem about ssh and cygwin : You have to use password to
change from one user to another.

So I suggest you disable PK and enable password : It should work fine.

Emmanuel Guyot
8 Rue des Montées
45100 Orléans
http://www.increg.com



Relevant Pages

  • Re: Cgywin sshd: immediate disconnect
    ... > I'm running Cygwin sshd on Windows XP, ... > With sshd installed as an NT service, even when I ssh to localhost, I get ... It seems to be a problem about ssh and cygwin: You have to use password to ...
    (comp.security.ssh)
  • Re: troubleshooting network settings
    ... Send HUP signal to inetd ... Start sshd ... Try ssh login ... inchiki# ssh -l kouji localhost ...
    (freebsd-questions)
  • Re: native port of sshd for windows
    ... > Does a native port of SSHD (the server, ... You can run the cygwin sshd from a DOS/command shell line rather than ... I had it running on Windows ME by having a BAT file launch it ...
    (comp.security.ssh)
  • Re: Q:Two Cygwin sshds per one Windows machine?
    ... Both should have sshd server. ... >>has anybody managed to set up two Cygwin sshd processes for single ... I am thinking of setting ssh connections ... The SSH daemons will have to listen on different ports, ...
    (comp.security.ssh)
  • Re: HELP: how to enable telnet?
    ... > I run sshd through cygwin on my winxp box with no problems and as far ... I'm hoping to do rsync, ssh, sftp, and X through ssh for both home/work. ...
    (freebsd-newbies)