X-Spam-Check-By: sourceware.org Message-ID: <454B668A.6000803@cygwin.com> Date: Fri, 03 Nov 2006 10:55:54 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Can't "ssh localhost" - password not accepted References: <7158515 DOT post AT talk DOT nabble DOT com> In-Reply-To: <7158515.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ppmoore wrote: > Hello, > > I followed these instructions to install ssh on Cygwin, but they appear to > be broken: > http://www.nabble.com/ssh-and-SYSTEM-tf1863995.html#a5092524 Don't complain to us about that. Complain to the site's owner. This list doesn't support 3rd-party anything. If you're having trouble after using anything not associated with the cygwin.com site, your best bet is to proceed right back to the source of the information you used and query them. > I haven't been able to find any more detailed instructions anywhere else, so > here I am... Cygwin supported installation information is found in /usr/share/doc/Cygwin. There's a README there for openssh. You should read and follow that to configure openssh. If you have problems, first start by uninstalling openssh and get rid of any files you touched in the process. Then try installing again, following the configuration info provided in the README. > I downloaded the openssh package and installed. > I added the CYGWIN="ntsec tty" EV to Windows > I executed ssh-host-config, answering yes to each option. > I executed "net start sshd" > I imported the windows passwords using "mkpasswd -cl > /etc/passwd" and > "mkgroup --local > /etc/group", although the mkgroup command didn't work > because of an access rights problem. This should import my Windows password, > right? Import? No. 'mkpasswd' creates and '/etc/passwd' with your Windows SID info so that your Cygwin UID can be related back to the SID. No passwords are "imported". > I then started sshd using "net start sshd", and it starts up: > The CYGWIN sshd service is starting. > The CYGWIN sshd service was started successfully. > > I then stopped sshd, and tried starting it manually, using "/usr/sbin/sshd > -d -e -D", to attempt to view logging whole using "ssh localhost", and I get > the message: > debug1: sshd version OpenSSH_4.4p1 > Could not load host key: /etc/ssh_host_key > Could not load host key: /etc/ssh_host_rsa_key > Could not load host key: /etc/ssh_host_dsa_key > Disabling protocol version 1. Could not load host key > Disabling protocol version 2. Could not load host key > sshd: no hostkeys available -- exiting. > > Have I missed something? Yes. Don't start Cygwin from the command line as you. If you *must* run it from the command line and you're running on XP or less, Google the cygwin site for "SYSTEM-owned shell". This will tell you how to open a shell running as SYSTEM so you can safely start 'ssh' the same way as it is started as a service. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- 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/