X-Spam-Check-By: sourceware.org Message-ID: <455CB922.5010109@cygwin.com> Date: Thu, 16 Nov 2006 14:16:50 -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: "/bin/bash: Permission denied" problem with ssh under WinXP 2003 x64 resolved ... somehow References: In-Reply-To: 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 Brian Kasper wrote: > In complete frustration, I wiped my entire Cygwin install and > re-downloaded and -installed everything. Then, on a whim, I logged in > as the actual "Administrator" account on my box (instead of my account, > which *is* a member of the Administrators group) and configured sshd in > a bash shell by issuing the following commands: > > mkgroup -l -u > /etc/group > mkpasswd -l > /etc/passwd > ssh-host-config > (accept all defaults and reasonable options, including privsep) > > ssh-user-config > (create all tokens and set all to be valid for login) > > cygrunsrv -S sshd > (watch, startled, as no "Error 1062" message appears) > > ssh localhost > (it works, and there was much rejoicing) > > I then logged out and logged in as my user account and repeated the > ssh-user-config step. "ssh localhost" then worked! > > I wish I had better information about exactly what resolved the problem, > but all I can say is it appears one must actually be "Administrator" to > get sshd working -- perhaps there's some subtle difference between the > "Administrator" user and any other user that happens to be in the > "Administrator" group? > > For the record, here's the output of "uname -a" on my system: > > CYGWIN_NT-5.2-WOW64 ABF466 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin > > And the version information reported by "/usr/sbin/sshd --help": > > OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006 > > Thanks to everyone who made suggestions. I wish I had definitive > information as to exactly what fixed the problem .... So do we. ;-) Still, anecdotal information can also be useful. All I can say is that if this worked for you, it's likely an issue of W2K3 x64, since there is no magic generally to the "Administrator" account. I've installed the ssh service on W2K and XP using my user id (which is only part of the Administrators group). -- 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/