X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <625116.97298.qm@web55108.mail.re4.yahoo.com> References: <4BBF08AD DOT 9080407 AT linogate DOT de> Date: Fri, 9 Apr 2010 08:26:55 -0700 (PDT) From: Eric Berge Subject: Re: unable to login using ssh and password To: cygwin AT cygwin DOT com In-Reply-To: <4BBF08AD.9080407@linogate.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 > Hi, > > I have installed cygwin on a windows 7 system because I need to remotely > start graphical Applications using ssh. > > Setting up the sshd works fine using the ssh-host-config and > ssh-user-config scripts. I can access the server with ssh using password > and keyfiles, but I can't start a graphical program. > > So I changed the settings of the sshd service from using "cyg_server" to > "local service account" and activated "Allow Service to interact with > desktop". That the sshd starts again, I changed the owner of /var/empty > from cyg_server to SYSTEM and the sshd starts again. > > Now I'am able to connect to the server from my linux system using a > keyfile (ssh -i file user AT server), but I can't access the system using > password authentication. > With "access" I mean, that I don't get a prompt. I get a login and I > can enter my password. I also get the correct "Last login: ...." message > from the server, but then the connection is terminated. > > I already searched a lot in the mailinglist and googled around. I found > a few people having the same problem and they solved it by changing > permissions of various files (for example the bash and the /etc/ssh* > files). I also regenerated my passwd and group files running "mkgroup" > (twice, once with -l and the other time with -d) and "mkpasswd -cl" with > no effect... > > I also tried running "cyglsa-config" and a "rebaseall"... > > What confuses me is that I'm able to connect to the windows server from > the windows host itself by running "ssh localhost". > > I think that this is not really a problem of a sshd misconfiguration but > a problem of wrong permissions. But why am I able to connect from the > host itself with a password, and why can I login from remote using > keyfiles? > > Thank you > > Martin > > P.S. Im using the default sshd_config and attached the output of > cygcheck as described on cygwin.com. If you need more Information just > let me know. > It looks like you're running 1.7.1 and there were some pretty serious problems with initializing the user profile that are now fixed. You might want to try at least 1.7.2 (I think you'll get 1.7.4 as the default right now). Also if you want to diagnose this further, trying running "Process Monitor" from www.sysinternals.com and filter for the potential failing processes (bash.exe maybe) and look to see if it's failing on accessing non-existent registry entries. Eric Berge -- 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