delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/29/20:35:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20031229202246.03bb61a0@127.0.0.1>
X-Sender:
Date: Mon, 29 Dec 2003 20:32:04 -0500
To: "dominix" <dominix AT despammed DOT com>, <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: [1.5.5] sshd error on local machine. [the return of sshd nightmare]
In-Reply-To: <001801c3ce6a$fb975500$0100a8c0@adn.dyndns.info>
References: <001801c3ce6a$fb975500$0100a8c0 AT adn DOT dyndns DOT info>
Mime-Version: 1.0

You're not starting sshd as a service.  You're not going to have allot of 
luck starting it from the command line.  If you're looking for debug output,
you need to install sshd under a different name (than "sshd") and pass it
the "-d" flag.  See the "cygrunsrv -I" command in /bin/ssh-host-config for 
information on how sshd has been installed for you as a service.  Copy it
with changes for the service name (sshd) and passing it the debug flag "-d".

FYI, SYSTEM ~= root.

HTH,

Larry

At 07:22 PM 12/29/2003, dominix you wrote:
>I've tryed this advice from Corinna:
>
>> - Deinstall the sshd service: cygrunsrv -R sshd
>> - Edit /etc/passwd and remove the sshd account entry.
>> - Remove the sshd account: net user sshd /delete
>> - If you didn't change much in your /etc/ssh_config and /etc/ssdh_config
>>   files, remove them.
>> - Run ssh-host-config again.
>> - Run ssh-user-config for your own (and each other used) account.
>> - Restart the sshd service.
>>
>> Corinna
>
>I don't understand what's wrong, I've read nearly *all* threads about ssh in
>the ML
>, I've reinstalled ssh packages many times taking care of perms... using
>priv sep.
>
>Note:this machine has special interface binding that I suspect to be
>responsible of troubles cause I've installed the same software on others
>machines that works *very* well.
>
>#---------------------------------------------------------#
>ipconfig /all
>
>Windows IP Configuration
>
>        Host Name . . . . . . . . . . . . : pastis
>        Primary Dns Suffix  . . . . . . . : adn.dyndns.info
>        Node Type . . . . . . . . . . . . : Unknown
>        IP Routing Enabled. . . . . . . . : Yes
>        WINS Proxy Enabled. . . . . . . . : No
>        DNS Suffix Search List. . . . . . : adn.dyndns.info
>                                            dyndns.info
>
>Ethernet adapter Local Area Connection:
>
>        Connection-specific DNS Suffix  . :
>        Description . . . . . . . . . . . : D-Link DL10050-based Ethernet
>Adapter (Generic)
>        Physical Address. . . . . . . . . : 00-05-5D-07-7B-70
>        Dhcp Enabled. . . . . . . . . . . : No
>        IP Address. . . . . . . . . . . . : 192.168.1.91
>        Subnet Mask . . . . . . . . . . . : 255.255.255.0
>        IP Address. . . . . . . . . . . . : 192.168.0.1
>        Subnet Mask . . . . . . . . . . . : 255.255.255.0
>        Default Gateway . . . . . . . . . :
>        DNS Servers . . . . . . . . . . . : 202.3.225.10
>                                            202.3.225.20
>
>PPP adapter Olitec USB ADSL:
>
>        Connection-specific DNS Suffix  . :
>        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
>        Physical Address. . . . . . . . . : 00-53-45-00-00-00
>        Dhcp Enabled. . . . . . . . . . . : No
>#---------------------------------------------------------#
>NB: windows XP Internet firewall=on but not log at all regarding local
>traffic
>
>
>I'm unable to use sshd -d as I was used to on unix system
>cause I got error
># sshd -d
>debug1: sshd version OpenSSH_3.7.1p2
>debug1: read PEM private key done: type RSA
>debug1: private host key: #0 type 1 RSA
>debug1: read PEM private key done: type DSA
>debug1: private host key: #1 type 2 DSA
>/var/empty must be owned by root and not group or world-writable.
>
>root ?? who's that ??
>
># ls -lad /var/empty /var/log/sshd.log
>drwxr-xr-x+   2 SYSTEM   Administ        0 Jul  5 22:31 /var/empty
>-rw-rw-r--+   1 SYSTEM   Administ        0 Nov  8 17:16 /var/log/sshd.log
>
>no feedback in sshd.log ?
>
>now trying to login, I just get this from both localhost or another machine
>on localnetwork
>#---------------------------------------------------------#
># ssh -v -v pastis
>OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
>debug1: Reading configuration data /etc/ssh_config
>debug2: ssh_connect: needpriv 0
>debug1: Connecting to pastis [192.168.0.1] port 22.
>debug1: Connection established.
>debug1: identity file /cygdrive/c/DOCUME~1/dominix/.ssh/identity type -1
>debug1: identity file /cygdrive/c/DOCUME~1/dominix/.ssh/id_rsa type -1
>debug2: key_type_from_name: unknown key type '-----BEGIN'
>debug2: key_type_from_name: unknown key type 'Proc-Type:'
>debug2: key_type_from_name: unknown key type 'DEK-Info:'
>debug2: key_type_from_name: unknown key type '-----END'
>debug1: identity file /cygdrive/c/DOCUME~1/dominix/.ssh/id_dsa type 2
>debug1: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2
>debug1: match: OpenSSH_3.7.1p2 pat OpenSSH*
>debug1: Enabling compatibility mode for protocol 2.0
>debug1: Local version string SSH-2.0-OpenSSH_3.7.1p2
>debug1: SSH2_MSG_KEXINIT sent
>debug1: SSH2_MSG_KEXINIT received
>debug2: kex_parse_kexinit:
>diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
>debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
>debug2: kex_parse_kexinit:
>aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
>ijndael-cbc AT lysator DOT liu DOT se,aes128-ctr,aes192-ctr,aes256-ctr
>debug2: kex_parse_kexinit:
>aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
>ijndael-cbc AT lysator DOT liu DOT se,aes128-ctr,aes192-ctr,aes256-ctr
>debug2: kex_parse_kexinit:
>hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hm
>ac-md5-96
>debug2: kex_parse_kexinit:
>hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hm
>ac-md5-96
>debug2: kex_parse_kexinit: none,zlib
>debug2: kex_parse_kexinit: none,zlib
>debug2: kex_parse_kexinit:
>debug2: kex_parse_kexinit:
>debug2: kex_parse_kexinit: first_kex_follows 0
>debug2: kex_parse_kexinit: reserved 0
>debug2: kex_parse_kexinit:
>diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
>debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
>debug2: kex_parse_kexinit:
>aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
>ijndael-cbc AT lysator DOT liu DOT se,aes128-ctr,aes192-ctr,aes256-ctr
>debug2: kex_parse_kexinit:
>aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,r
>ijndael-cbc AT lysator DOT liu DOT se,aes128-ctr,aes192-ctr,aes256-ctr
>debug2: kex_parse_kexinit:
>hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hm
>ac-md5-96
>debug2: kex_parse_kexinit:
>hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hm
>ac-md5-96
>debug2: kex_parse_kexinit: none,zlib
>debug2: kex_parse_kexinit: none,zlib
>debug2: kex_parse_kexinit:
>debug2: kex_parse_kexinit:
>debug2: kex_parse_kexinit: first_kex_follows 0
>debug2: kex_parse_kexinit: reserved 0
>debug2: mac_init: found hmac-md5
>debug1: kex: server->client aes128-cbc hmac-md5 none
>debug2: mac_init: found hmac-md5
>debug1: kex: client->server aes128-cbc hmac-md5 none
>debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
>debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
>debug2: dh_gen_key: priv key bits set: 134/256
>debug2: bits set: 1590/3191
>debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
>debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
>Read from socket failed: Connection aborted
>debug1: Calling cleanup 0x41bf10(0x0)
>
>more feedback ?
>
>#---------------------------------------------------------#
>pastis dominix # psloglist.exe Application
>
>PsLogList v2.31 - local and remote event log viewer
>Copyright (C) 2000-2003 Mark Russinovich
>Sysinternals - www.sysinternals.com
>
>Application log on \\PASTIS:
>[010] sshd
>   Type:     ERROR
>   Computer: PASTIS
>   Time:     29/12/2003 12:51:21   ID:       0
>   User:     SYSTEM\NT AUTHORITY
>sshd : PID 3652 : fatal: mm_request_receive: read: -1
>[009] sshd
>   Type:     ERROR
>   Computer: PASTIS
>   Time:     29/12/2003 12:51:21   ID:       0
>   User:     SYSTEM\NT AUTHORITY
>sshd : PID 772 : fatal: Read from socket failed: Resource temporarily
>unavailable
>[008] sshd
>   Type:     INFORMATION
>   Computer: PASTIS
>   Time:     29/12/2003 12:51:11   ID:       0
>   User:     SYSTEM\NT AUTHORITY
>sshd : PID 3436 : `sshd' service started
>[007] sshd
>   Type:     INFORMATION
>   Computer: PASTIS
>   Time:     29/12/2003 12:51:10   ID:       0
>   User:     SYSTEM\NT AUTHORITY
>sshd : PID 3112 : Server listening on 0.0.0.0 port 22.
>
>permission checking is a possible issue
>#---------------------------------------------------------#
>pastis dominix # ls -lad /etc/ssh* .ssh/* /var/empty /var/log/sshd.log
>-rw-------+   1 dominix  None          605 Dec 29 10:42 .ssh/authorized_keys
>-rw-------    1 dominix  None          736 Dec 29 10:42 .ssh/id_dsa
>-rw-r--r--    1 dominix  None          605 Dec 29 10:42 .ssh/id_dsa.pub
>-rw-r--r--    1 dominix  None         4988 Dec 29 12:21 .ssh/known_hosts
>-rwxr-x---    1 SYSTEM   None         1159 Dec 29 11:59 /etc/ssh_config
>-rw-------+   1 SYSTEM   Administ      668 Jun  9  2002
>/etc/ssh_host_dsa_key
>-rw-------+   1 SYSTEM   Administ      604 Jun  9  2002
>/etc/ssh_host_dsa_key.pub
>-rw-------+   1 SYSTEM   Administ      529 Jun  9  2002 /etc/ssh_host_key
>-rw-------+   1 SYSTEM   Administ      333 Jun  9  2002
>/etc/ssh_host_key.pub
>-rw-------+   1 SYSTEM   Administ      887 Jun  9  2002
>/etc/ssh_host_rsa_key
>-rw-------+   1 SYSTEM   Administ      224 Jun  9  2002
>/etc/ssh_host_rsa_key.pub
>-rw-rw-rw-    1 SYSTEM   None         2420 Dec 29 12:50 /etc/sshd_config
>-rw-rw-rw-    1 SYSTEM   None         2422 Dec 29 12:47 /etc/sshd_config~
>drwxr-xr-x+   2 SYSTEM   Administ        0 Jul  5 22:31 /var/empty
>-rw-rw-r--+   1 SYSTEM   Administ        0 Nov  8 17:16 /var/log/sshd.log


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019