delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/06/08:02:19

X-Spam-Check-By: sourceware.org
Message-ID: <43BE6A1F.7090105@equate.dyndns.org>
Date: Fri, 06 Jan 2006 13:01:19 +0000
From: Chris Taylor <chris AT equate DOT dyndns DOT org>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Debian Thunderbird 1.0.7 (X11/20051017)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Ken DOT Senior AT nrl DOT navy DOT mil
Subject: Re: sshd must be restarted
References: <twig DOT 1136549779 DOT 12934 AT juno DOT nrl DOT navy DOT mil>, <twig DOT 1136549779 DOT 12934 AT juno DOT nrl DOT navy DOT mil> <twig DOT 1136551175 DOT 88213 AT juno DOT nrl DOT navy DOT mil>
In-Reply-To: <twig.1136551175.88213@juno.nrl.navy.mil>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Top-posting reformatted.

Ken Senior wrote:
> 
> On Fri, Jan 6, 2006, Chris Taylor <chris AT XXXXXX DOT XXXX DOT XXXX> said:
http://cygwin.com/acronyms/#PCYMTNQREAIYR

> 
> 
>> Ken Senior wrote:
>> 
>>> Does anyone know why after a Windows XP reboot one must restart
>>> the SSH daemon in order to allow incoming ssh?  The process is
>>> automatically running after a reboot but all incoming SSH from
>>> remote clients are terminated with the following message being
>>> displayed on the remote client:
>>> 
>>> ssh_exchange_identification: Connection closed by remote host
>>> 
>>> Restarting the daemon, either in Windows services or on the bash
>>> command line, fixes the problem allowing in ssh traffic once
>>> again. ??
>>> 
>>> Thanks,
>>> 
>>> Ken Senior
>>> 
>> 
>> Never had to do that here .. (otherwise known as WFM)
>> 
>> Please follow the instructions here, with emphasis on *attaching* 
>> cygcheck.out :
>> 
>>> Problem reports:       http://cygwin.com/problems.html
>> 
>> Also, if you could include details on how you installed the service
>> - especially if you didn't use the standard method.
>> 
>> 

> Great. I have made said attachment.  One interesting oddity about my 
> installation is that I have two usernames which are identical, one
> for our Windows domain and one for the administrator account on my
> PC.  I made sure to give both accounts admin privileges locally on
> the machine, but that seems not always to work.  I also noticed when
> I installed cygwin (yesterday) that the installation correctly
> recognized both accounts and indeed created two entries in
> /etc/passwd.  I was way impressed in my minimal IT experience.
> However, I have noticed that various pieces of the installation were
> confused about what was my home directory.  Some packages (SSH) think
> the home page should be /home/senior whereas the default bash shell
> thinks it's located in /cygdrive/c/Documents and 
> Settings/senior.DOMAIN.
> 
> Now, regarding installation of the sshd service.  I simply ran the 
> '/usr/bin/ssh-host-config -y' command followed by 'cygrunsrv -S sshd'
> 
> 
> This all sounds like a cruel permissions problem, yuck!
> 
> -K
> 

That would be the problem.
Specifically, ssh is taking the username, and taking the first match in 
/etc/passwd
If you need both users available, rename one, otherwise, use just the 
local users in /etc/passwd

Use mkpasswd -l for that.
Do the same with mkgroups, so as to ensure that everything matches up.


Also, please ensure your mailer respects the reply-to header - I set it 
for a reason. Don't cc me as I am subscribed to the list. Thanks.


Chris

-- 

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019