OpenSSH and Enhanced Security

From: Narendra Raavi (narendra_at_spiff.mt.att.com)
Date: 02/01/05

  • Next message: Alan Cline: "Putty to Windows sshd server authentication problem"
    Date: Tue, 1 Feb 2005 16:06:25 -0500
    To: secureshell@securityfocus.com
    
    

    Folks,

    I've looked at the archives and seen that SSH on Tru64 with Enhanced
    Security is possible.

    However, I am unable to make SSH work on systems with Enhanced Security.
    For some reason the sia authentication modules are not being picked up,
    though I compiled with --with-sia (and configure always picks up this).

    I would appreciate any insight into what is wrong. Here are some details:

    Tru64 UNIX V4.0F PK#7
    OpenSSH v3.9p1, OpenSSL 0.9.7e, zlib 1.2.2, prngd 0.9.29

    SSH is compiled statically. Output of ssh and sshd is below:

    =====ssh -vvv adamite -l narendra ===================
    $ ssh -vvv adamite -l narendra
    OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
    debug1: Reading configuration data /opt/ssh/etc/ssh_config
    debug1: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to adamite [135.191.71.24] port 22.
    debug1: Connection established.
    debug1: identity file /usr/users2/narendra/.ssh/identity type -1
    debug1: identity file /usr/users2/narendra/.ssh/id_rsa type -1
    debug1: identity file /usr/users2/narendra/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8p1
    debug1: match: OpenSSH_3.8p1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.8p1
    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,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-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,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit:
    aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-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(1024<1024<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug2: dh_gen_key: priv key bits set: 129/256
    debug2: bits set: 525/1024
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug3: check_host_in_hostfile: filename
    /usr/users2/narendra/.ssh/known_hosts
    debug3: check_host_in_hostfile: match line 3
    debug3: check_host_in_hostfile: filename
    /usr/users2/narendra/.ssh/known_hosts
    debug3: check_host_in_hostfile: match line 3
    debug1: Host 'adamite' is known and matches the RSA host key.
    debug1: Found key in /usr/users2/narendra/.ssh/known_hosts:3
    debug2: bits set: 497/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: /usr/users2/narendra/.ssh/identity (0)
    debug2: key: /usr/users2/narendra/.ssh/id_rsa (0)
    debug2: key: /usr/users2/narendra/.ssh/id_dsa (0)
    debug1: Authentications that can continue:
    publickey,password,keyboard-interactive
    debug3: start over, passed a different list
    publickey,password,keyboard-interactive
    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: /usr/users2/narendra/.ssh/identity
    debug3: no such identity: /usr/users2/narendra/.ssh/identity
    debug1: Trying private key: /usr/users2/narendra/.ssh/id_rsa
    debug3: no such identity: /usr/users2/narendra/.ssh/id_rsa
    debug1: Trying private key: /usr/users2/narendra/.ssh/id_dsa
    debug3: no such identity: /usr/users2/narendra/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    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:
    publickey,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
    narendra@adamite's password:
    debug3: packet_send2: adding 48 (len 62 padlen 18 extra_pad 64)
    debug2: we sent a password packet, wait for reply
    debug1: Authentications that can continue:
    publickey,password,keyboard-interactive
    Permission denied, please try again.
    narendra@adamite's password:
    =====ssh -vvv adamite -l narendra ===================
    =====sshd -ddd ==========================================
    Feb 1 08:22:57 adamite sshd[13174]: debug3: recv_rexec_state: entering fd
    = 5
    Feb 1 08:22:57 adamite sshd[13174]: debug3: ssh_msg_recv entering
    Feb 1 08:22:57 adamite sshd[13174]: debug3: recv_rexec_state: done
    Feb 1 08:22:57 adamite sshd[13174]: debug2: parse_server_config: config
    rexec len 173
    Feb 1 08:22:57 adamite sshd[13174]: debug1: sshd version OpenSSH_3.9p1
    Feb 1 08:22:57 adamite sshd[13174]: debug1: private host key: #0 type 0
    RSA1
    Feb 1 08:22:57 adamite sshd[13174]: debug3: Not a RSA1 key file
    /opt/ssh/etc/ssh_host_rsa_key.
    Feb 1 08:22:57 adamite sshd[13174]: debug1: read PEM private key done:
    type RSA
    Feb 1 08:22:57 adamite sshd[13174]: debug1: private host key: #1 type 1
    RSA
    Feb 1 08:22:57 adamite sshd[13174]: debug3: Not a RSA1 key file
    /opt/ssh/etc/ssh_host_dsa_key.
    Feb 1 08:22:57 adamite sshd[13174]: debug1: read PEM private key done:
    type DSA
    Feb 1 08:22:57 adamite sshd[13174]: debug1: private host key: #2 type 2
    DSA
    Feb 1 08:22:57 adamite sshd[13174]: debug1: inetd sockets after dupping:
    3, 3
    Feb 1 08:22:57 adamite sshd[13174]: Connection from 135.191.71.23 port
    1649
    Feb 1 08:22:57 adamite sshd[13174]: debug1: Client protocol version 2.0;
    client software version OpenSSH_3.8p1
    Feb 1 08:22:57 adamite sshd[13174]: debug1: match: OpenSSH_3.8p1 pat
    OpenSSH*
    Feb 1 08:22:57 adamite sshd[13174]: debug1: Enabling compatibility mode
    for protocol 2.0
    Feb 1 08:22:57 adamite sshd[13174]: debug1: Local version string
    SSH-1.99-OpenSSH_3.9p1
    Feb 1 08:22:57 adamite sshd[13174]: debug2: fd 3 setting O_NONBLOCK
    Feb 1 08:22:57 adamite sshd[13174]: debug1: list_hostkey_types:
    ssh-rsa,ssh-dss
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_KEXINIT sent
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_KEXINIT received
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    ssh-rsa,ssh-dss
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: none,zlib
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: none,zlib
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    first_kex_follows 0
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: reserved 0
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    ssh-rsa,ssh-dss
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: none,zlib
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: none,zlib
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit:
    first_kex_follows 0
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_parse_kexinit: reserved 0
    Feb 1 08:22:57 adamite sshd[13174]: debug2: mac_init: found hmac-md5
    Feb 1 08:22:57 adamite sshd[13174]: debug1: kex: client->server aes128-cbc
    hmac-md5 none
    Feb 1 08:22:57 adamite sshd[13174]: debug2: mac_init: found hmac-md5
    Feb 1 08:22:57 adamite sshd[13174]: debug1: kex: server->client aes128-cbc
    hmac-md5 none
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST
    received
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    Feb 1 08:22:57 adamite sshd[13174]: debug2: dh_gen_key: priv key bits set:
    133/256
    Feb 1 08:22:57 adamite sshd[13174]: debug2: bits set: 498/1024
    Feb 1 08:22:57 adamite sshd[13174]: debug1: expecting
    SSH2_MSG_KEX_DH_GEX_INIT
    Feb 1 08:22:57 adamite sshd[13174]: debug2: bits set: 507/1024
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    Feb 1 08:22:57 adamite sshd[13174]: debug2: kex_derive_keys
    Feb 1 08:22:57 adamite sshd[13174]: debug2: set_newkeys: mode 1
    Feb 1 08:22:57 adamite sshd[13174]: debug1: SSH2_MSG_NEWKEYS sent
    Feb 1 08:22:57 adamite sshd[13174]: debug1: expecting SSH2_MSG_NEWKEYS
    Feb 1 08:23:03 adamite sshd[13174]: debug2: set_newkeys: mode 0
    Feb 1 08:23:03 adamite sshd[13174]: debug1: SSH2_MSG_NEWKEYS received
    Feb 1 08:23:03 adamite sshd[13174]: debug1: KEX done
    Feb 1 08:23:03 adamite sshd[13174]: debug1: userauth-request for user
    narendra service ssh-connection method none
    Feb 1 08:23:03 adamite sshd[13174]: debug1: attempt 0 failures 0
    Feb 1 08:23:03 adamite sshd[13174]: debug2: input_userauth_request:
    setting up authctxt for narendra
    Feb 1 08:23:03 adamite sshd[13174]: debug2: input_userauth_request: try
    method none
    Feb 1 08:23:03 adamite sshd[13174]: Failed none for narendra from
    135.191.71.23 port 1649 ssh2
    Feb 1 08:23:03 adamite sshd[13174]: debug1: userauth-request for user
    narendra service ssh-connection method keyboard-interactive
    Feb 1 08:23:03 adamite sshd[13174]: debug1: attempt 1 failures 1
    Feb 1 08:23:03 adamite sshd[13174]: debug2: input_userauth_request: try
    method keyboard-interactive
    Feb 1 08:23:03 adamite sshd[13174]: debug1: keyboard-interactive devs
    Feb 1 08:23:03 adamite sshd[13174]: debug1: auth2_challenge: user=narendra
    devs=
    Feb 1 08:23:03 adamite sshd[13174]: debug1: kbdint_alloc: devices ''
    Feb 1 08:23:03 adamite sshd[13174]: debug2: auth2_challenge_start: devices
    Feb 1 08:23:03 adamite sshd[13174]: Failed keyboard-interactive for
    narendra from 135.191.71.23 port 1649 ssh2
    Feb 1 08:23:10 adamite sshd[13174]: debug1: userauth-request for user
    narendra service ssh-connection method password
    Feb 1 08:23:10 adamite sshd[13174]: debug1: attempt 2 failures 2
    Feb 1 08:23:10 adamite sshd[13174]: debug2: input_userauth_request: try
    method password
    Feb 1 08:23:10 adamite sshd[13174]: debug3: Trying to reverse map address
    135.191.71.23.
    Feb 1 08:23:10 adamite sshd[13174]: error: Couldn't authenticate narendra
    from alexandrite
    Feb 1 08:23:10 adamite sshd[13174]: Failed password for narendra from
    135.191.71.23 port 1649 ssh2
    Feb 1 08:23:16 adamite sshd[13174]: debug1: userauth-request for user
    narendra service ssh-connection method password
    Feb 1 08:23:16 adamite sshd[13174]: debug1: attempt 3 failures 3
    Feb 1 08:23:16 adamite sshd[13174]: debug2: input_userauth_request: try
    method password
    Feb 1 08:23:16 adamite sshd[13174]: error: Couldn't authenticate narendra
    from alexandrite
    Feb 1 08:23:16 adamite sshd[13174]: Failed password for narendra from
    135.191.71.23 port 1649 ssh2
    Feb 1 08:24:16 adamite sshd[13174]: Connection closed by 135.191.71.23
    Feb 1 08:24:16 adamite sshd[13174]: debug1: do_cleanup
    =====sshd -ddd ==========================================

     -- Narendra Ra[a]vi Email : narendra@spiff.mt.att.com
        MT A4-4B27 Phone : 732-420-7792


  • Next message: Alan Cline: "Putty to Windows sshd server authentication problem"

    Relevant Pages