From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15097 invoked by alias); 12 Nov 2013 14:32:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15084 invoked by uid 89); 12 Nov 2013 14:32:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pb0-f48.google.com Received: from Unknown (HELO mail-pb0-f48.google.com) (209.85.160.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 12 Nov 2013 14:32:10 +0000 Received: by mail-pb0-f48.google.com with SMTP id mc17so4677535pbc.35 for ; Tue, 12 Nov 2013 06:32:02 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.68.189.101 with SMTP id gh5mr35603553pbc.39.1384266722652; Tue, 12 Nov 2013 06:32:02 -0800 (PST) Received: by 10.70.35.139 with HTTP; Tue, 12 Nov 2013 06:32:02 -0800 (PST) In-Reply-To: <1384213686304-104251.post@n5.nabble.com> References: <4FCF00EB.2070600@gmail.com> <4FD07C1D.5070909@gmail.com> <52028508.7000102@cygwin.com> <5269D1AA.5010306@cygwin.com> <1384213686304-104251.post@n5.nabble.com> Date: Tue, 12 Nov 2013 14:32:00 -0000 Message-ID: Subject: Re: ssh logon failure From: George Demmy To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00235.txt.bz2 On Mon, Nov 11, 2013 at 6:48 PM, greenspan wrote: > Larry, thanks for your reply. I am using windows 7. I've tried changing > ownership of /var/empty to cyg_server, but this doesn't help. > > FYI my "Fix" only worked for a day before failing again. Now I'm back to > square one. FWIW I was struggling with setting up ssh on a heterogeneous set of boxes and all the while I was thinking I had sshd messed up but I think turned out that the uids on the files in .ssh were inconsistent. A recursive chown on the .ssh dir and locking the dir/file perms down to 700/600 solved a heap of problems for me. The one sshd thing that bit me was DNS, but I set UseDNS no in /etc/sshd_config and cleared that up as well. One of the mantras that it helps to repeat is that "ssh on Cygwin works" so it's a matter of making sure yourenvironment is right: - valid uid/USERNAME/HOME in /etc/passwd - .ssh is in $HOME and chown $USERNAME and chmod 700 - all files in .ssh are chown $USERNAME and chmod 600 (not strictly necessary, but removes doubt) - public keys from foreign boxes stashed away properly in .ssh/authorized_keys HTH, George -- 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