Please send a Debug3 trace (sshd -dddp222), debug level 1 doesn't
contain all the necessary information

-d

On Tue, 27 Feb 2007, Josh Grosse wrote:

> After building -current on Feb 25, I noticed when I attempted to use S/Key
> remotely, that it was not a permitted authentication style.  (I use S/Key 
> when publc key authentication is not available, so it may have nothing to do 
> with recent changes to how sshd_config Match works, and may be something else
> entirely, I have not used S/Key in a few weeks.)
> 
> Trying to recreate the problem, I ran sshd in debug mode, and ssh -vvv; 
> it looks like the authentication method isn't viable.
> 
> I'm hoping someone can  quickly come to an "ah-hah!!" by looking at this 
> output
> and my config files.  If not, perhaps recreate the problem?
> 
> (I used -p 222 to override the default port while collecting debug output.)
> debug1: private host key: #0 type 0 RSA1
> debug1: read PEM private key done: type RSA
> debug1: private host key: #1 type 1 RSA
> debug1: read PEM private key done: type DSA
> debug1: private host key: #2 type 2 DSA
> debug1: rexec_argv[0]='/usr/sbin/sshd'
> debug1: rexec_argv[1]='-d'
> debug1: rexec_argv[2]='-p'
> debug1: rexec_argv[3]='222'
> debug1: Bind to port 222 on 0.0.0.0.
> Server listening on 0.0.0.0 port 222.
> Generating 768 bit RSA key.
> RSA key generation complete.
> debug1: fd 5 clearing O_NONBLOCK
> debug1: Server will not fork when running in debugging mode.
> debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
> debug1: inetd sockets after dupping: 4, 4
> Connection from 127.0.0.1 port 46616
> debug1: Client protocol version 2.0; client software version OpenSSH_4.5
> debug1: match: OpenSSH_4.5 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-1.99-OpenSSH_4.5
> debug1: permanently_set_uid: 27/27
> debug1: list_hostkey_types: ssh-rsa,ssh-dss
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
> debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
> debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: KEX done
> debug1: userauth-request for user j:skey service ssh-connection method none
> debug1: attempt 0 failures 0
> Connection closed by 127.0.0.1
> debug1: do_cleanup
> debug1: do_cleanup
> 
> ---- ssh output ----
> 
> OpenSSH_4.5, OpenSSL 0.9.7j 04 May 2006
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to localhost [127.0.0.1] port 222.
> debug1: Connection established.
> debug1: identity file /home/j/.ssh/identity type -1
> debug1: identity file /home/j/.ssh/id_rsa type -1
> debug1: identity file /home/j/.ssh/id_dsa type -1
> debug1: Remote protocol version 1.99, remote software version OpenSSH_4.5
> debug1: match: OpenSSH_4.5 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_4.5
> debug2: fd 4 setting O_NONBLOCK
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug2: kex_parse_kexinit: 
> 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
> debug2: kex_parse_kexinit: 
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
>  PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
> debug2: kex_parse_kexinit: 
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
>  PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL 
> PROTECTED],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL 
> PROTECTED],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib
> debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],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-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-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,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
>  PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
> debug2: kex_parse_kexinit: 
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
>  PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL 
> PROTECTED],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL 
> PROTECTED],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
> debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
> 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(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug2: dh_gen_key: priv key bits set: 134/256
> debug2: bits set: 517/1024
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug3: put_host_port: [127.0.0.1]:222
> debug3: put_host_port: [localhost]:222
> debug3: check_host_in_hostfile: filename /home/j/.ssh/known_hosts
> debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
> debug1: checking without port identifier
> debug3: check_host_in_hostfile: filename /home/j/.ssh/known_hosts
> debug3: check_host_in_hostfile: match line 1
> debug1: Host 'localhost' is known and matches the RSA host key.
> debug1: Found key in /home/j/.ssh/known_hosts:1
> debug1: found matching key w/out port
> debug2: bits set: 516/1024
> debug1: ssh_rsa_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: SSH2_MSG_SERVICE_REQUEST sent
> debug2: service_accept: ssh-userauth
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug2: key: /home/j/.ssh/identity (0x0)
> debug2: key: /home/j/.ssh/id_rsa (0x0)
> debug2: key: /home/j/.ssh/id_dsa (0x0)
> debug1: Authentications that can continue: publickey
> debug3: start over, passed a different list publickey
> debug3: preferred publickey,keyboard-interactive,password
> debug3: authmethod_lookup publickey
> debug3: remaining preferred: keyboard-interactive,password
> debug3: authmethod_is_enabled publickey
> debug1: Next authentication method: publickey
> debug1: Trying private key: /home/j/.ssh/identity
> debug3: no such identity: /home/j/.ssh/identity
> debug1: Trying private key: /home/j/.ssh/id_rsa
> debug3: no such identity: /home/j/.ssh/id_rsa
> debug1: Trying private key: /home/j/.ssh/id_dsa
> debug3: no such identity: /home/j/.ssh/id_dsa
> debug2: we did not send a packet, disable method
> debug1: No more authentication methods to try.
> Permission denied (publickey).
> 
> 
> ---- sshd_config ----
> 
> # based on:
> #     $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
> 
> # local modifications:
> PermitRootLogin no
> PasswordAuthentication no
> ClientAliveInterval 15
> ClientAliveCountMax 3
> X11Forwarding yes
> AddressFamily inet
> 
> # override default of no subsystems
> Subsystem     sftp    /usr/libexec/sftp-server
> 
> ---- ssh_config ----
> 
> # this is:
> #     $OpenBSD: ssh_config,v 1.22 2006/05/29 12:56:33 dtucker Exp $
> # 100% comments.

Reply via email to