Here's (part of) my "ssh -v -v output":
--------------------------
OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug2: ssh_connect: needpriv 0
debug1: Connecting to aamfinance [10.56.29.244] port 22.
debug1: Connection established.
debug1: identity file /u01/app/oracle/.ssh/ident
debug1: identity file /u01/app/oracle/.ssh/id_rs
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /u01/app/oracle/.ssh/id_ds
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p1
debug1: match: OpenSSH_3.6.1p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
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-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
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_REQUES
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 132/256
debug2: bits set: 1607/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'aamfinance' is known and matches the RSA host key.
debug1: Found key in /u01/app/oracle/.ssh/known
debug2: bits set: 1530/3191
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
debug1: Authentications that can continue: publickey,password,keyboar
debug1: Next authentication method: publickey
debug1: Trying private key: /u01/app/oracle/.ssh/ident
debug1: Trying private key: /u01/app/oracle/.ssh/id_rs
debug1: Offering public key: /u01/app/oracle/.ssh/id_ds
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboar
debug2: we did not send a packet, disable method
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,keyboar
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
oracle@aamfinance's password:
debug2: we sent a password packet, wait for reply
Connection closed by 10.56.29.244
debug1: Calling cleanup 0x2c95c(0x0)
Here the complete "sshd -d -d output":
--------------------------
debug2: read_server_config: filename /usr/local/etc/sshd_config
debug1: sshd version OpenSSH_3.6.1p1
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: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 10.72.28.216 port 36503
debug1: Client protocol version 2.0; client software version OpenSSH_3.6.1p1
debug1: match: OpenSSH_3.6.1p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.6.1p1
debug2: Network child is on pid 24249
debug1: permanently_set_uid: 1004/102
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
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-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
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: client->server aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUES
debug2: monitor_read: 0 used once, disabling now
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug2: dh_gen_key: priv key bits set: 129/256
debug2: bits set: 1578/3191
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug2: bits set: 1597/3191
debug2: monitor_read: 4 used once, disabling nowdebug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
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: KEX done
debug1: userauth-request for user oracle service ssh-connection method none
debug1: attempt 0 failures 0
debug2: monitor_read: 6 used once, disabling nowdebug2: input_userauth_request: setting up authctxt for oracle
debug1: Starting up PAM with username "oracle"debug2: input_userauth_request: try method none
debug1: PAM setting rhost to "aamfinance-qa"
debug2: monitor_read: 41 used once, disabling now
debug2: monitor_read: 3 used once, disabling now
Failed none for oracle from 10.72.28.216 port 36503 ssh2
Failed none for oracle from 10.72.28.216 port 36503 ssh2
debug1: userauth-request for user oracle service ssh-connection method publickey
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method publickey
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 1001/101 (e=0/1)
debug1: trying public key file /u01/app/oracle/.ssh/autho
Authentication refused: bad ownership or modes for file /u01/app/oracle/.ssh/autho
debug1: restore_uid: 0/1
debug1: temporarily_use_uid: 1001/101 (e=0/1)
debug1: trying public key file /u01/app/oracle/.ssh/autho
Authentication refused: bad ownership or modes for file /u01/app/oracle/.ssh/autho
debug1: restore_uid: 0/1
debug2: userauth_pubkey: authenticated 0 pkalg ssh-dss
Failed publickey for oracle from 10.72.28.216 port 36503 ssh2
debug1: userauth-request for user oracle service ssh-connection method keyboard-interactive
debug1: attempt 2 failures 2
debug2: input_userauth_request: try method keyboard-interactive
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=oracle devs=
debug1: kbdint_alloc: devices ''
debug2: auth2_challenge_start: devices
Failed keyboard-interactive for oracle from 10.72.28.216 port 36503 ssh2
Main Topics
Browse All Topics





by: liddlerPosted on 2003-08-19 at 05:35:50ID: 9180429
First run
ssh -v -v <remote server >
and look at the output
Also on remote server, kill sshd and run
sshd -d -d
You may have to enable telnet while you do this, if it's disabled.
You can then get error messages from ssh in verbose mode (-v -v) and sshd in debug mode (-d -d)
typically, it it a file permission problem. ssh is very strict about file ownership / permissions.
If you don't understand the output from ssh or sshd, post it here for us to take a look