Connect by ssh only as root

Alor alor at taipang.com
Wed Sep 29 09:55:54 UTC 2004


> Try connecting using -vv (very verbose) and look at the logs or the
> debug printouts

alor at minsc:~> ssh -vv 10.7.123.2
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
11812: debug1: Reading configuration data /etc/ssh/ssh_config
11812: debug1: Applying options for *
11812: debug1: Rhosts Authentication disabled, originating port will not be 
trusted.
11812: debug1: ssh_connect: needpriv 0
11812: debug1: Connecting to 10.7.123.2 [10.7.123.2] port 22.
11812: debug1: Connection established.
11812: debug1: identity file /home/alor/.ssh/identity type -1
11812: debug2: key_type_from_name: unknown key type '-----BEGIN'
11812: debug2: key_type_from_name: unknown key type '-----END'
11812: debug1: identity file /home/alor/.ssh/id_rsa type 1
11812: debug1: identity file /home/alor/.ssh/id_dsa type -1
11812: debug1: Remote protocol version 1.99, remote software version 
OpenSSH_3.6.1p2
11812: debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
11812: Enabling compatibility mode for protocol 2.0
11812: debug1: Local version string SSH-2.0-OpenSSH_3.4p1
11812: debug1: SSH2_MSG_KEXINIT sent
11812: debug1: SSH2_MSG_KEXINIT received
11812: debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
11812: debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
11812: debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc at lysator.liu.se
11812: debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc at lysator.liu.se
11812: debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
11812: debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
11812: debug2: kex_parse_kexinit: none
11812: debug2: kex_parse_kexinit: none
11812: debug2: kex_parse_kexinit:
11812: debug2: kex_parse_kexinit:
11812: debug2: kex_parse_kexinit: first_kex_follows 0
11812: debug2: kex_parse_kexinit: reserved 0
11812: debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
11812: debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
11812: debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc at lysator.liu.se
11812: debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc at lysator.liu.se
11812: debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
11812: debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
11812: debug2: kex_parse_kexinit: none,zlib
11812: debug2: kex_parse_kexinit: none,zlib
11812: debug2: kex_parse_kexinit:
11812: debug2: kex_parse_kexinit:
11812: debug2: kex_parse_kexinit: first_kex_follows 0
11812: debug2: kex_parse_kexinit: reserved 0
11812: debug2: mac_init: found hmac-md5
11812: debug1: kex: server->client aes128-cbc hmac-md5 none
11812: debug2: mac_init: found hmac-md5
11812: debug1: kex: client->server aes128-cbc hmac-md5 none
11812: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
11812: debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
11812: debug1: dh_gen_key: priv key bits set: 135/256
11812: debug1: bits set: 1573/3191
11812: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
11812: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
11812: debug1: Host '10.7.123.2' is known and matches the RSA host key.
11812: debug1: Found key in /home/alor/.ssh/known_hosts:2
11812: debug1: bits set: 1589/3191
11812: debug1: ssh_rsa_verify: signature correct
11812: debug1: kex_derive_keys
11812: debug1: newkeys: mode 1
11812: debug1: SSH2_MSG_NEWKEYS sent
11812: debug1: waiting for SSH2_MSG_NEWKEYS
11812: debug1: newkeys: mode 0
11812: debug1: SSH2_MSG_NEWKEYS received
11812: debug1: done: ssh_kex2.
11812: debug1: send SSH2_MSG_SERVICE_REQUEST
11812: debug1: service_accept: ssh-userauth
11812: debug1: got SSH2_MSG_SERVICE_ACCEPT
11812: debug1: authentications that can continue: 
publickey,password,keyboard-interactive
11812: debug1: next auth method to try is publickey
11812: debug1: try privkey: /home/alor/.ssh/identity
11812: debug1: try pubkey: /home/alor/.ssh/id_rsa
11812: debug2: we sent a publickey packet, wait for reply
11812: debug1: authentications that can continue: 
publickey,password,keyboard-interactive
11812: debug1: try privkey: /home/alor/.ssh/id_dsa
11812: debug2: we did not send a packet, disable method
11812: debug1: next auth method to try is keyboard-interactive
11812: debug2: userauth_kbdint
11812: debug2: we sent a keyboard-interactive packet, wait for reply
11812: debug1: authentications that can continue: 
publickey,password,keyboard-interactive
11812: debug2: we did not send a packet, disable method
11812: debug1: next auth method to try is password
alor at 10.7.123.2's password:
11812: debug2: we sent a password packet, wait for reply
11812: debug1: ssh-userauth2 successful: method password
11812: debug1: channel 0: new [client-session]
11812: debug1: send channel open 0
11812: debug1: Entering interactive session.
11812: debug2: callback start
11812: debug1: ssh_session2_setup: id 0
11812: debug1: channel request 0: pty-req
11812: debug1: channel request 0: shell
11812: debug1: fd 3 setting TCP_NODELAY
11812: debug2: callback done
11812: debug1: channel 0: open confirm rwindow 0 rmax 32768
11812: debug1: channel_free: channel 0: client-session, nchannels 1
Connection to 10.7.123.2 closed by remote host.
Connection to 10.7.123.2 closed.
11812: debug1: Transferred: stdin 0, stdout 0, stderr 83 bytes in 0.2 seconds
11812: debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 553.0
11812: debug1: Exit status -1




More information about the test mailing list