X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=P8 V3NjAfw26+LkNhr3PYV8KUD2HcISiqk79+6RkVPP9c1bd7oZfVWcokPt6B+I4PBS /Y9ek2F354fxQiwmnpRJH2IFr/FoRK0LNxU2y7vygHlJ4QAgpeeoFP8cPslHCqXF L5OqHNo3OKiH0JHDM62e7CykGaNc7aqUswFVE3LW8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=tJ0HlxsJ h/rSBS22AHrthCbhw+c=; b=ecCKPM5nK9SEFM1tzvPvOSZ/6r6b3td9mnGIoVNt mrFy19xuOpgPQUAKBJxLwMt+tG9kIybkHvGL1sILkl36BpKYxJRtDdrqvhxyFmpr 8ieEQsGax40YJw7/rZgUWmagxtceAODgG6wn+P4RXVJeWgSycykzAChEmgQMbfY0 Fsg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_BELOW2 autolearn=ham version=3.3.2 X-HELO: mail-la0-f48.google.com MIME-Version: 1.0 X-Received: by 10.112.156.166 with SMTP id wf6mr33194833lbb.13.1381811372827; Mon, 14 Oct 2013 21:29:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Oct 2013 06:29:32 +0200 Message-ID: Subject: Re: SSH Key Authentication is not working From: Tadej Animalix To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Thanks for quick reply. Any idea why I didn't receive email about this reply? First I would need to tell you think "sshd.log" may not be from the same session, so please ignore it. After installation of CYGWIN with OpenSSH I added path of bin directory to global variables and I ran these commands: chmod +r /etc/passwd chmod u+w /etc/passwd chmod +r /etc/group chmod u+w /etc/group chmod 755 /var touch /var/log/sshd.log chmod 664 /var/log/sshd.log Then I started "ssh-host-config" and entered: "ntsec tty" for saemon answered all with yes and I changed name to "sshd" and entered a password. After that I ran "cyglsa-config" and answered Yes and rebooted computer. Then in cmd I ran "ash" and re-based all with "/usr/bin/rebaseall". Then I opened CYGWIN terminal and executed lines bellow: chown system /etc/ssh* chown system /var/empty mkgroup -l > ..\etc\group mkpasswd -l > ..\etc\passwd After that I was able to start "CYGWIN sshd" as service and I was able to connect with user-pwd authentication, but key login doesn't work at this point. I've also tried to CHMOD ".ssh" folder and "authorized_keys" but that didn't help. Am I missing something? Thanks for your help. Bye, Tadej On Tue, Oct 15, 2013 at 6:27 AM, Tadej Animalix wrote: > Thanks for quick reply. Any idea why I didn't receive email about this > reply? > > First I would need to tell you think "sshd.log" may not be from the same > session, so please ignore it. > > After installation of CYGWIN with OpenSSH I added path of bin directory to > global variables and I ran these commands: > chmod +r /etc/passwd > chmod u+w /etc/passwd > chmod +r /etc/group > chmod u+w /etc/group > chmod 755 /var > touch /var/log/sshd.log > chmod 664 /var/log/sshd.log > > > Then I started "ssh-host-config" and entered: > "ntsec tty" for saemon > answered all with yes > > and I changed name to "sshd" and entered a password. > > After that I ran "cyglsa-config" and answered Yes and rebooted computer. > > Then in cmd I ran "ash" and re-based all with "/usr/bin/rebaseall". > > Then I opened CYGWIN terminal and executed lines bellow: > chown system /etc/ssh* > chown system /var/empty > mkgroup -l > ..\etc\group > mkpasswd -l > ..\etc\passwd > > After that I was able to start "CYGWIN sshd" as service and I was able to > connect with user-pwd authentication, but key login doesn't work at this > point. > > I've also tried to CHMOD ".ssh" folder and "authorized_keys" but that didn't > help. > > Am I missing something? > > Thanks for your help. > > Bye, Tadej > > > > > > -- 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