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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=LQXhwlQoWPMcm1kG8lTxA5BQYkNqnS4YB/tSaaOps0/ HuKVUE6BMEyRBSypDcySGT27AnsBEjbB+Re4d0mmDH/Of8wOBI4oEgR37N/IxUaM astSZqHpwNpDlzm4kCFxoB3XLhdqTrbzWUqBrTqfX9Tc0JkHFIA8wq6SAiROMyOQ = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=PYaJMMJqcWRIp44kcgowvFZyhyI=; b=H+EbfRkDOEWAeobuS ZvOjsjI3juAQK3+902u8PJq1zOY4AB43D1CbReDoLoXNYhe5AwTzvMfHCOadbUkI 9/2MCxfSXYE71gZtvpdXCvRQRU3cVohcJcJjGPTs2KdXG7j7570prKMIt95SN6Mh PtTqnbTYuvWvXjTOBpQvE5oQRQ= 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=-0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com X-Received: by 10.180.109.6 with SMTP id ho6mr13592982wib.58.1433686181810; Sun, 07 Jun 2015 07:09:41 -0700 (PDT) Message-ID: <557450A2.8040406@gmail.com> Date: Sun, 07 Jun 2015 16:09:38 +0200 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: I can't connect to ssh References: <267325919 DOT 9857838 DOT 1433683013056 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> In-Reply-To: <267325919.9857838.1433683013056.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 6/7/2015 3:16 PM, Marilo wrote: > On Sunday, 7 June 2015, 3:48, Jim Garrison wrote: > On 6/6/2015 6:15 PM, Marilo wrote: >>> >>> >>> harvey AT samsung350 ~ >>> $ nc 127.0.0.1 22 >>> SSH-2.0-OpenSSH_6.6.1 >>> >>> >>> harvey AT samsung350 ~ >>> $ ssh 127.0.0.1 >>> Connection closed by 127.0.0.1 >>> > > > I guess my server keys permissions are ok. I'm not sure if owner should be root > harvey AT samsung350 /etc > $ ls -l ssh_* > -rw-rwxr-- 1 SYSTEM root 1574 Jun 7 01:35 ssh_config > -rw------- 1 SYSTEM root 668 Aug 29 2014 ssh_host_dsa_key > -rw-r--r-- 1 SYSTEM root 607 Aug 29 2014 ssh_host_dsa_key.pub > -rw------- 1 SYSTEM root 227 Aug 29 2014 ssh_host_ecdsa_key > -rw-r--r-- 1 SYSTEM root 179 Aug 29 2014 ssh_host_ecdsa_key.pub > -rw------- 1 SYSTEM root 411 Aug 29 2014 ssh_host_ed25519_key > -rw-r--r-- 1 SYSTEM root 99 Aug 29 2014 ssh_host_ed25519_key.pub > -rw------- 1 SYSTEM root 982 Aug 29 2014 ssh_host_key > -rw-r--r-- 1 SYSTEM root 647 Aug 29 2014 ssh_host_key.pub > -rw------- 1 SYSTEM root 1675 Aug 29 2014 ssh_host_rsa_key > -rw-r--r-- 1 SYSTEM root 399 Aug 29 2014 ssh_host_rsa_key.pub > root is likely coming from a not anymore needed row in /etc/group. SYSTEM should be wrong owner, group as defined by ssh-host-config script $ ls -l /etc/ssh* -rw-r--r-- 1 cyg_server Administrators 1.6K Jun 7 15:57 /etc/ssh_config -rw------- 1 cyg_server Administrators 668 Oct 4 2012 /etc/ssh_host_dsa_key -rw------- 1 cyg_server Administrators 590 Oct 4 2012 /etc/ssh_host_dsa_key.pub -rw------- 1 cyg_server Administrators 227 Oct 4 2012 /etc/ssh_host_ecdsa_key -rw-r--r-- 1 cyg_server Administrators 179 Oct 4 2012 /etc/ssh_host_ecdsa_key.pub -rw------- 1 cyg_server Administrators 411 Jun 7 15:57 /etc/ssh_host_ed25519_key -rw-r--r-- 1 cyg_server Administrators 101 Jun 7 15:57 /etc/ssh_host_ed25519_key.pub -rw------- 1 cyg_server Administrators 963 Oct 4 2012 /etc/ssh_host_key -rw------- 1 cyg_server Administrators 627 Oct 4 2012 /etc/ssh_host_key.pub -rw------- 1 cyg_server Administrators 1.7K Oct 4 2012 /etc/ssh_host_rsa_key -rw------- 1 cyg_server Administrators 382 Oct 4 2012 /etc/ssh_host_rsa_key.pub -rw-r--r-- 1 cyg_server Administrators 3.5K Jun 7 15:58 /etc/sshd_config Regards MArco -- 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