delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/01/12:26:31

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=BL
IrjRKGOxKIpKExiEQ3RupzEsw8PO3IGHvZTmeC4HUtmZSLHtK4obf/mNcJOyt9X0
SY15tuhj2y7NrS5/JTv0Bf+DViaQZfwwKGIT+Zpy8Cv1ot6O6Jle9P0xKd6kO6TO
N/EX65p0sckoN1FB9bzR6TDjuHzAEM6G9NJaorN1I=
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=lMwFHdR0
DimpV2x9xsORVSKGGfM=; b=dxKqObiCXhVa4pc49PikhGd71PXHL5QYvVcLm654
lbzkMpUTgh4QDQPjSLzR78rtRURqLFC4cTa2cYjlZhn8YYXG/4rdn1954VPwb9tm
jRxMinf8XkiyHiwVLlH6ONjfKNIYsScBUgZu6Ua8io7OuQry8w06GS9I3x0/X4ZQ
LIs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_CD,TW_KB autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.58.239.37 with SMTP id vp5mr9852709vec.32.1372695961083; Mon, 01 Jul 2013 09:26:01 -0700 (PDT)
In-Reply-To: <7010185028.20130701195539@mtu-net.ru>
References: <CAMhuX2Dzn9A8G3iUW95y_KxUPU7UJ7uaXKuDz1dmjK0swF8jtg AT mail DOT gmail DOT com> <7010185028 DOT 20130701195539 AT mtu-net DOT ru>
Date: Mon, 1 Jul 2013 12:26:01 -0400
Message-ID: <CAMhuX2DtpHoniztu5hcerZVZjXMShcMj+kz7NmFmd-GLwk2BbA@mail.gmail.com>
Subject: Re: Can SSH from localhost as Admin but NOT 'regular' user when using passwords
From: Evan Rowley <rowley DOT evan AT gmail DOT com>
To: Andrey Repin <cygwin AT cygwin DOT com>

Andrey Repin,

Some english is better than none! With Russian, I have a lot to learn still.

Interesting is that on both installations of Cygwin, /var/log/sshd.log is
empty. I've followed to basic steps to install Cygwin, setup users, and
setup sshd. Maybe there is another step for logging that I missed?

I can give the output of attempting to ssh to SFTP_User:

Admin AT HOST1 ~
$ ssh SFTP_User AT localhost -vvv
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/Admin/.ssh/id_rsa type -1
debug1: identity file /home/Admin/.ssh/id_rsa-cert type -1
debug1: identity file /home/Admin/.ssh/id_dsa type -1
debug1: identity file /home/Admin/.ssh/id_dsa-cert type -1
debug1: identity file /home/Admin/.ssh/id_ecdsa type -1
debug1: identity file /home/Admin/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "localhost" from file
"/home/Admin/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file
/home/Admin/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs:
ecdsa-sha2-nistp256-cert-v01 AT openssh DOT com,
ecdsa-sha2-nistp384-cert-v01 AT openssh DOT com,
ecdsa-sha2-nistp521-cert-v01 AT openssh DOT com
,ecdsa-sha2-nistp256,ecdsa-
sha2-nistp384,ecdsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01 AT openssh DOT com,
ecdsa-sha2-nistp384-cert-v01 AT openssh DOT com,
ecdsa-sha2-nistp521-cert-v01 AT openssh DOT com
,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
ssh-rsa-cert-v01 AT openssh DOT com,ssh-dss-cert-v01 AT openssh DOT com,
ssh-rsa-cert-v00 AT openssh DOT com,ssh-dss-cert-v00 AT openssh DOT com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-gcm AT openssh DOT com,aes256-gcm AT openssh DOT com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-cbc AT lysator DOT liu DOT se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-gcm AT openssh DOT com,aes256-gcm AT openssh DOT com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-cbc AT lysator DOT liu DOT se
debug2: kex_parse_kexinit: hmac-md5-etm AT openssh DOT com,
hmac-sha1-etm AT openssh DOT com,umac-64-etm AT openssh DOT com,umac-128-etm AT openssh DOT com,
hmac-sha2-256-etm AT openssh DOT com,hmac-sha2-512-etm AT openssh DOT com,
hmac-ripemd160-etm AT openssh DOT com,hmac-sha1-96-etm AT openssh DOT com,
hmac-md5-96-etm AT openssh DOT com,hmac-md5,hmac-sha1,umac-64 AT openssh DOT com,
umac-128 AT openssh DOT com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-etm AT openssh DOT com,
hmac-sha1-etm AT openssh DOT com,umac-64-etm AT openssh DOT com,umac-128-etm AT openssh DOT com,
hmac-sha2-256-etm AT openssh DOT com,hmac-sha2-512-etm AT openssh DOT com,
hmac-ripemd160-etm AT openssh DOT com,hmac-sha1-96-etm AT openssh DOT com,
hmac-md5-96-etm AT openssh DOT com,hmac-md5,hmac-sha1,umac-64 AT openssh DOT com,
umac-128 AT openssh DOT com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib AT openssh DOT com,zlib
debug2: kex_parse_kexinit: none,zlib AT openssh DOT com,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:
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-gcm AT openssh DOT com,aes256-gcm AT openssh DOT com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-cbc AT lysator DOT liu DOT se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-gcm AT openssh DOT com,aes256-gcm AT openssh DOT com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-cbc AT lysator DOT liu DOT se
debug2: kex_parse_kexinit: hmac-md5-etm AT openssh DOT com,
hmac-sha1-etm AT openssh DOT com,umac-64-etm AT openssh DOT com,umac-128-etm AT openssh DOT com,
hmac-sha2-256-etm AT openssh DOT com,hmac-sha2-512-etm AT openssh DOT com,
hmac-ripemd160-etm AT openssh DOT com,hmac-sha1-96-etm AT openssh DOT com,
hmac-md5-96-etm AT openssh DOT com,hmac-md5,hmac-sha1,umac-64 AT openssh DOT com,
umac-128 AT openssh DOT com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-etm AT openssh DOT com,
hmac-sha1-etm AT openssh DOT com,umac-64-etm AT openssh DOT com,umac-128-etm AT openssh DOT com,
hmac-sha2-256-etm AT openssh DOT com,hmac-sha2-512-etm AT openssh DOT com,
hmac-ripemd160-etm AT openssh DOT com,hmac-sha1-96-etm AT openssh DOT com,
hmac-md5-96-etm AT openssh DOT com,hmac-md5,hmac-sha1,umac-64 AT openssh DOT com,
umac-128 AT openssh DOT com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-ripemd160 AT openssh DOT com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib AT openssh DOT com
debug2: kex_parse_kexinit: none,zlib AT openssh DOT com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5-etm AT openssh DOT com
debug1: kex: server->client aes128-ctr hmac-md5-etm AT openssh DOT com none
debug2: mac_setup: found hmac-md5-etm AT openssh DOT com
debug1: kex: client->server aes128-ctr hmac-md5-etm AT openssh DOT com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
b3:b9:b7:02:eb:7b:fd:eb:ac:2b:b3:15:0f:30:c4:a4
debug3: load_hostkeys: loading entries for host "localhost" from file
"/home/Admin/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file
/home/Admin/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/Admin/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/Admin/.ssh/id_rsa (0x0),
debug2: key: /home/Admin/.ssh/id_dsa (0x0),
debug2: key: /home/Admin/.ssh/id_ecdsa (0x0),
debug1: Authentications that can continue: password,keyboard-interactive
debug3: start over, passed a different list password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: password,keyboard-interactive
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred:
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
SFTP_User AT localhost's password:
debug3: packet_send2: adding 48 (len 74 padlen 6 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: password,keyboard-interactive
Permission denied, please try again.
SFTP_User AT localhost's password:
debug3: packet_send2: adding 48 (len 74 padlen 6 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: password,keyboard-interactive
Permission denied, please try again.
SFTP_User AT localhost's password:
debug3: packet_send2: adding 48 (len 74 padlen 6 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: password,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (password,keyboard-interactive).


--
 - EJR

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

- Raw text -


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