This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I can't connect to ssh


On 6/7/2015 3:16 PM, Marilo wrote:
On Sunday, 7 June 2015, 3:48, Jim Garrison <jhg@jhmg.net> wrote:
On 6/6/2015 6:15 PM, Marilo wrote:


harvey@samsung350 ~
$ nc 127.0.0.1 22
SSH-2.0-OpenSSH_6.6.1


harvey@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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]