delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/10/11:46:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 10 Mar 2011 11:46:02 -0500
Message-ID: <AANLkTi=GqbJ8gw7Y4SRonBe_p7hadzuUncvYBAX11Brm@mail.gmail.com>
Subject: How do I update SSHD daemon password?
From: David Means <w1t3h4t AT gmail DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

I changed the password on the account used by the cron daemon and the
ssh daemon.  Both services (cron and ssh) use the same user account
named, 'sshd'.

However, the ssh daemon will not take the username/password change.
I've tried un-installing all SSH files (via the cygwin setup.exe
utility) and re-installing the files.  I then tried de-installing the
files and upgrading to the latest version.  That didn't help either.

If I knew where the ssh daemon username/password information was
cached, I think I could fix it, or at least delete it and start over
again.

And ideas would be appreciated!

Thank you.


$ ssh-host-config --yes --user sshd --pwd XXXXXXXXXXX
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read
/usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Updating /etc/sshd_config file

*** Info: Host configuration finished. Have fun!

$ net start sshd
System error 1069 has occurred.

The service did not start due to a logon failure.


$ net start cron
The Cron daemon service is starting.
The Cron daemon service was started successfully.


$ cygcheck --version
cygcheck version 1.126
System Checker for Cygwin
Copyright (C) 1998 - 2008 Red Hat, Inc.
Compiled on Mar  1 2011

$ uname -a
CYGWIN_NT-6.1-WOW64 myhost 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin


---
David Means

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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