普通用户 ssh 密钥登录失败的问题,困惑了很久 – SegmentFault

生成的key应该是没有问题,因为我把生成的公钥写到到/root/.ssh/authorized_keys里面,然后执行ssh root@xxx 能够直接登陆。

但是换成普通用户则就出现了问题。

现在的情况:
/home/test/.ssh 权限700
/home/test/.ssh/authorized_keys 权限600

也执行了chown -R test:test /home/test/.ssh

/etc/ssh/sshd_config里面也开启了登陆认证

<code><span class="hljs-title">RSAAuthentication</span> <span class="hljs-built_in">yes</span></p><p>PubkeyAuthentication <span class="hljs-built_in">yes</span></p><p>AuthorizedKeysFile      .ssh/authorized_keys</p><p></code>

service sshd restart 也执行过了

/etc/selinux/config里面已经是SELINUX=disabled

但是普通用户就是无法登录。

参看了安全日志/var/log/secure得到的结果也仅仅是一句:
Did not receive identification string from xxx

加上登陆调试提示信息:

<code>OpenSSH_5<span class="hljs-number">.3</span>p1, OpenSSL <span class="hljs-number">1.0</span><span class="hljs-number">.0</span>-fips <span class="hljs-number">29</span> Mar <span class="hljs-number">2010</span></p><p><span class="hljs-attribute">debug1</span>: Reading configuration data /etc/ssh/ssh_config</p><p><span class="hljs-attribute">debug1</span>: Applying options <span class="hljs-keyword">for</span> *</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">ssh_connect</span>: needpriv <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: Connecting to <span class="hljs-number">186.192</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span> [<span class="hljs-number">186.192</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span>] port <span class="hljs-number">22.</span></p><p><span class="hljs-attribute">debug1</span>: Connection established.</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">permanently_set_uid</span>: <span class="hljs-number">0</span>/<span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/identity type -<span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug3</span>: Not a RSA1 key file <span class="hljs-regexp">/root/</span>.ssh/id_rsa.</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key_type_from_name</span>: unknown key type <span class="hljs-string">'-----BEGIN'</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing keytype</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key_type_from_name</span>: unknown key type <span class="hljs-string">'-----END'</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing keytype</p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/id_rsa type <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/id_dsa type -<span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: Remote protocol version <span class="hljs-number">2.0</span>, remote software version OpenSSH_5<span class="hljs-number">.3</span></p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">match</span>: OpenSSH_5<span class="hljs-number">.3</span> pat OpenSSH*</p><p><span class="hljs-attribute">debug1</span>: Enabling compatibility mode <span class="hljs-keyword">for</span> protocol <span class="hljs-number">2.0</span></p><p><span class="hljs-attribute">debug1</span>: Local version string SSH-<span class="hljs-number">2.0</span>-OpenSSH_5<span class="hljs-number">.3</span></p><p><span class="hljs-attribute">debug2</span>: fd <span class="hljs-number">3</span> setting O_NONBLOCK</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEXINIT sent</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">792</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">813</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEXINIT received</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: ssh-rsa,ssh-dss</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com,zlib</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com,zlib</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: first_kex_follows <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: reserved <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: ssh-rsa</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: first_kex_follows <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: reserved <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">mac_setup</span>: found hmac-md5</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">kex</span>: server-&gt;client aes128-ctr hmac-md5 none</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">mac_setup</span>: found hmac-md5</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">kex</span>: client-&gt;server aes128-ctr hmac-md5 none</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEX_DH_GEX_REQUEST(<span class="hljs-number">1024</span>&lt;<span class="hljs-number">1024</span>&lt;<span class="hljs-number">8192</span>) sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_KEX_DH_GEX_GROUP</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">24</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">837</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">dh_gen_key</span>: priv key bits <span class="hljs-attribute">set</span>: <span class="hljs-number">126</span>/<span class="hljs-number">256</span></p><p><span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">484</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEX_DH_GEX_INIT sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_KEX_DH_GEX_REPLY</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">144</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">981</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">check_host_in_hostfile</span>: filename <span class="hljs-regexp">/root/</span>.ssh/known_hosts</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">check_host_in_hostfile</span>: match line <span class="hljs-number">2</span></p><p><span class="hljs-attribute">debug1</span>: Host <span class="hljs-string">'186.192.56.140'</span> <span class="hljs-keyword">is</span> known <span class="hljs-keyword">and</span> matches the RSA host key.</p><p><span class="hljs-attribute">debug1</span>: Found key <span class="hljs-keyword">in</span> <span class="hljs-regexp">/root/</span>.ssh/<span class="hljs-attribute">known_hosts</span>:<span class="hljs-number">2</span></p><p><span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">502</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">ssh_rsa_verify</span>: signature correct</p><p><span class="hljs-attribute">debug2</span>: kex_derive_keys</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">set_newkeys</span>: mode <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_NEWKEYS sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_NEWKEYS</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">16</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">997</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">set_newkeys</span>: mode <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_NEWKEYS received</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_SERVICE_REQUEST sent</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">48</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1045</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">service_accept</span>: ssh-userauth</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_SERVICE_ACCEPT received</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/identity ((nil))</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa (<span class="hljs-number">0x7f04533f0bc0</span>)</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_dsa ((nil))</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">64</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1109</span></p><p><span class="hljs-attribute">debug1</span>: Authentications that can <span class="hljs-attribute">continue</span>: publickey,gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,password</p><p><span class="hljs-attribute">debug3</span>: start over, passed a different list publickey,gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,password</p><p><span class="hljs-attribute">debug3</span>: preferred gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup gssapi-keyex</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: gssapi-<span class="hljs-reserved">with</span>-mic,publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled gssapi-keyex</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: gssapi-keyex</p><p><span class="hljs-attribute">debug1</span>: No valid Key exchange context</p><p><span class="hljs-attribute">debug2</span>: we did <span class="hljs-keyword">not</span> send a packet, disable method</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug3</span>: Trying to reverse map address <span class="hljs-number">186.192</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span>.</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p>Cannot determine realm <span class="hljs-keyword">for</span> numeric host address</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p>Cannot determine realm <span class="hljs-keyword">for</span> numeric host address</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p><span class="hljs-attribute">debug2</span>: we did <span class="hljs-keyword">not</span> send a packet, disable method</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup publickey</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled publickey</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: publickey</p><p><span class="hljs-attribute">debug1</span>: Trying private <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/identity</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-literal">no</span> such <span class="hljs-attribute">identity</span>: <span class="hljs-regexp">/root/</span>.ssh/identity</p><p><span class="hljs-attribute">debug1</span>: Offering public <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa</p><p><span class="hljs-attribute">debug3</span>: send_pubkey_test</p><p><span class="hljs-attribute">debug2</span>: we sent a publickey packet, wait <span class="hljs-keyword">for</span> reply</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">368</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1477</span></p><p><span class="hljs-attribute">debug1</span>: Authentications that can <span class="hljs-attribute">continue</span>: publickey,gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,password</p><p><span class="hljs-attribute">debug1</span>: Trying private <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_dsa</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-literal">no</span> such <span class="hljs-attribute">identity</span>: <span class="hljs-regexp">/root/</span>.ssh/id_dsa</p><p><span class="hljs-attribute">debug2</span>: we did <span class="hljs-keyword">not</span> send a packet, disable method</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup password</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: ,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled password</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: password</p><p>test@<span class="hljs-number">186.192</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span><span class="hljs-string">'s password: </p><p></span></code>

ssh root@192.168.56.140 -vvv

<code>OpenSSH_5<span class="hljs-number">.3</span>p1, OpenSSL <span class="hljs-number">1.0</span><span class="hljs-number">.0</span>-fips <span class="hljs-number">29</span> Mar <span class="hljs-number">2010</span></p><p><span class="hljs-attribute">debug1</span>: Reading configuration data /etc/ssh/ssh_config</p><p><span class="hljs-attribute">debug1</span>: Applying options <span class="hljs-keyword">for</span> *</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">ssh_connect</span>: needpriv <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: Connecting to <span class="hljs-number">192.168</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span> [<span class="hljs-number">192.168</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span>] port <span class="hljs-number">22.</span></p><p><span class="hljs-attribute">debug1</span>: Connection established.</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">permanently_set_uid</span>: <span class="hljs-number">0</span>/<span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/identity type -<span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug3</span>: Not a RSA1 key file <span class="hljs-regexp">/root/</span>.ssh/id_rsa.</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key_type_from_name</span>: unknown key type <span class="hljs-string">'-----BEGIN'</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing keytype</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing whitespace</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key_type_from_name</span>: unknown key type <span class="hljs-string">'-----END'</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">key_read</span>: missing keytype</p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/id_rsa type <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: identity file <span class="hljs-regexp">/root/</span>.ssh/id_dsa type -<span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: Remote protocol version <span class="hljs-number">2.0</span>, remote software version OpenSSH_5<span class="hljs-number">.3</span></p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">match</span>: OpenSSH_5<span class="hljs-number">.3</span> pat OpenSSH*</p><p><span class="hljs-attribute">debug1</span>: Enabling compatibility mode <span class="hljs-keyword">for</span> protocol <span class="hljs-number">2.0</span></p><p><span class="hljs-attribute">debug1</span>: Local version string SSH-<span class="hljs-number">2.0</span>-OpenSSH_5<span class="hljs-number">.3</span></p><p><span class="hljs-attribute">debug2</span>: fd <span class="hljs-number">3</span> setting O_NONBLOCK</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEXINIT sent</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">792</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">813</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEXINIT received</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: ssh-rsa,ssh-dss</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com,zlib</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com,zlib</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: first_kex_follows <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: reserved <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: ssh-rsa</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,<span class="hljs-number">3</span>des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc<span class="hljs-property">@lysator</span>.liu.se</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: hmac-md5,hmac-sha1,umac-<span class="hljs-number">64</span><span class="hljs-property">@openssh</span>.com,hmac-ripemd160,hmac-ripemd160<span class="hljs-property">@openssh</span>.com,hmac-sha1-<span class="hljs-number">96</span>,hmac-md5-<span class="hljs-number">96</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: none,zlib<span class="hljs-property">@openssh</span>.com</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: first_kex_follows <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">kex_parse_kexinit</span>: reserved <span class="hljs-number">0</span> </p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">mac_setup</span>: found hmac-md5</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">kex</span>: server-&gt;client aes128-ctr hmac-md5 none</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">mac_setup</span>: found hmac-md5</p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">kex</span>: client-&gt;server aes128-ctr hmac-md5 none</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEX_DH_GEX_REQUEST(<span class="hljs-number">1024</span>&lt;<span class="hljs-number">1024</span>&lt;<span class="hljs-number">8192</span>) sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_KEX_DH_GEX_GROUP</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">24</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">837</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">dh_gen_key</span>: priv key bits <span class="hljs-attribute">set</span>: <span class="hljs-number">137</span>/<span class="hljs-number">256</span></p><p><span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">519</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_KEX_DH_GEX_INIT sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_KEX_DH_GEX_REPLY</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">144</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">981</span></p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">check_host_in_hostfile</span>: filename <span class="hljs-regexp">/root/</span>.ssh/known_hosts</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">check_host_in_hostfile</span>: match line <span class="hljs-number">2</span></p><p><span class="hljs-attribute">debug1</span>: Host <span class="hljs-string">'192.168.56.140'</span> <span class="hljs-keyword">is</span> known <span class="hljs-keyword">and</span> matches the RSA host key.</p><p><span class="hljs-attribute">debug1</span>: Found key <span class="hljs-keyword">in</span> <span class="hljs-regexp">/root/</span>.ssh/<span class="hljs-attribute">known_hosts</span>:<span class="hljs-number">2</span></p><p><span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">517</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-attribute">debug1</span>: <span class="hljs-attribute">ssh_rsa_verify</span>: signature correct</p><p><span class="hljs-attribute">debug2</span>: kex_derive_keys</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">set_newkeys</span>: mode <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_NEWKEYS sent</p><p><span class="hljs-attribute">debug1</span>: expecting SSH2_MSG_NEWKEYS</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">16</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">997</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">set_newkeys</span>: mode <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_NEWKEYS received</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_SERVICE_REQUEST sent</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">48</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1045</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">service_accept</span>: ssh-userauth</p><p><span class="hljs-attribute">debug1</span>: SSH2_MSG_SERVICE_ACCEPT received</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/identity ((nil))</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa (<span class="hljs-number">0x7faf8335ebb0</span>)</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_dsa ((nil))</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">64</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1109</span></p><p><span class="hljs-attribute">debug1</span>: Authentications that can <span class="hljs-attribute">continue</span>: publickey,gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,password</p><p><span class="hljs-attribute">debug3</span>: start over, passed a different list publickey,gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,password</p><p><span class="hljs-attribute">debug3</span>: preferred gssapi-keyex,gssapi-<span class="hljs-reserved">with</span>-mic,publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup gssapi-keyex</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: gssapi-<span class="hljs-reserved">with</span>-mic,publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled gssapi-keyex</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: gssapi-keyex</p><p><span class="hljs-attribute">debug1</span>: No valid Key exchange context</p><p><span class="hljs-attribute">debug2</span>: we did <span class="hljs-keyword">not</span> send a packet, disable method</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: publickey,keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: gssapi-<span class="hljs-reserved">with</span>-mic</p><p><span class="hljs-attribute">debug3</span>: Trying to reverse map address <span class="hljs-number">192.168</span><span class="hljs-number">.56</span><span class="hljs-number">.140</span>.</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p>Cannot determine realm <span class="hljs-keyword">for</span> numeric host address</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p>Cannot determine realm <span class="hljs-keyword">for</span> numeric host address</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p><span class="hljs-attribute">debug1</span>: An invalid name was supplied</p><p><span class="hljs-attribute">debug2</span>: we did <span class="hljs-keyword">not</span> send a packet, disable method</p><p><span class="hljs-attribute">debug3</span>: authmethod_lookup publickey</p><p><span class="hljs-attribute">debug3</span>: remaining <span class="hljs-attribute">preferred</span>: keyboard-interactive,password</p><p><span class="hljs-attribute">debug3</span>: authmethod_is_enabled publickey</p><p><span class="hljs-attribute">debug1</span>: Next authentication <span class="hljs-attribute">method</span>: publickey</p><p><span class="hljs-attribute">debug1</span>: Trying private <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/identity</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-literal">no</span> such <span class="hljs-attribute">identity</span>: <span class="hljs-regexp">/root/</span>.ssh/identity</p><p><span class="hljs-attribute">debug1</span>: Offering public <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa</p><p><span class="hljs-attribute">debug3</span>: send_pubkey_test</p><p><span class="hljs-attribute">debug2</span>: we sent a publickey packet, wait <span class="hljs-keyword">for</span> reply</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">368</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">1477</span></p><p><span class="hljs-attribute">debug1</span>: Server accepts <span class="hljs-attribute">key</span>: pkalg ssh-rsa blen <span class="hljs-number">277</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">input_userauth_pk_ok</span>: SHA1 fp <span class="hljs-attribute">a8</span>:<span class="hljs-number">19</span>:<span class="hljs-number">63</span>:<span class="hljs-attribute">d5</span>:<span class="hljs-attribute">be</span>:<span class="hljs-attribute">eb</span>:<span class="hljs-number">7</span><span class="hljs-attribute">c</span>:<span class="hljs-attribute">cd</span>:<span class="hljs-attribute">c2</span>:<span class="hljs-attribute">f9</span>:<span class="hljs-attribute">b5</span>:<span class="hljs-number">72</span>:<span class="hljs-attribute">c9</span>:<span class="hljs-number">84</span>:<span class="hljs-attribute">dc</span>:<span class="hljs-attribute">ec</span>:<span class="hljs-attribute">e1</span>:<span class="hljs-number">43</span>:<span class="hljs-number">24</span>:<span class="hljs-number">2</span>d</p><p><span class="hljs-attribute">debug3</span>: sign_and_send_pubkey</p><p><span class="hljs-attribute">debug1</span>: read PEM private key <span class="hljs-attribute">done</span>: type RSA</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">640</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">2117</span></p><p><span class="hljs-attribute">debug1</span>: Authentication succeeded (publickey).</p><p><span class="hljs-attribute">debug1</span>: channel <span class="hljs-number">0</span>: <span class="hljs-keyword">new</span> [client-session]</p><p><span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">ssh_session2_open</span>: <span class="hljs-attribute">channel_new</span>: <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: send open</p><p><span class="hljs-attribute">debug1</span>: Requesting <span class="hljs-literal">no</span>-more-sessions<span class="hljs-property">@openssh</span>.com</p><p><span class="hljs-attribute">debug1</span>: Entering interactive session.</p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">128</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">2245</span></p><p><span class="hljs-attribute">debug2</span>: callback start</p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">client_session2_setup</span>: id <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: request pty-req confirm <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug1</span>: Sending environment.</p><p><span class="hljs-attribute">debug3</span>: Ignored env HOSTNAME</p><p><span class="hljs-attribute">debug3</span>: Ignored env TERM</p><p><span class="hljs-attribute">debug3</span>: Ignored env SHELL</p><p><span class="hljs-attribute">debug3</span>: Ignored env HISTSIZE</p><p><span class="hljs-attribute">debug3</span>: Ignored env SSH_CLIENT</p><p><span class="hljs-attribute">debug3</span>: Ignored env QTDIR</p><p><span class="hljs-attribute">debug3</span>: Ignored env QTINC</p><p><span class="hljs-attribute">debug3</span>: Ignored env SSH_TTY</p><p><span class="hljs-attribute">debug3</span>: Ignored env USER</p><p><span class="hljs-attribute">debug3</span>: Ignored env LS_COLORS</p><p><span class="hljs-attribute">debug3</span>: Ignored env MAIL</p><p><span class="hljs-attribute">debug3</span>: Ignored env PATH</p><p><span class="hljs-attribute">debug3</span>: Ignored env PWD</p><p><span class="hljs-attribute">debug1</span>: Sending env LANG = zh_CN.UTF-<span class="hljs-number">8</span></p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: request env confirm <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug3</span>: Ignored env SSH_ASKPASS</p><p><span class="hljs-attribute">debug3</span>: Ignored env HISTCONTROL</p><p><span class="hljs-attribute">debug3</span>: Ignored env SHLVL</p><p><span class="hljs-attribute">debug3</span>: Ignored env HOME</p><p><span class="hljs-attribute">debug3</span>: Ignored env LOGNAME</p><p><span class="hljs-attribute">debug3</span>: Ignored env QTLIB</p><p><span class="hljs-attribute">debug3</span>: Ignored env CVS_RSH</p><p><span class="hljs-attribute">debug3</span>: Ignored env SSH_CONNECTION</p><p><span class="hljs-attribute">debug3</span>: Ignored env LESSOPEN</p><p><span class="hljs-attribute">debug3</span>: Ignored env G_BROKEN_FILENAMES</p><p><span class="hljs-attribute">debug3</span>: Ignored env _</p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: request shell confirm <span class="hljs-number">1</span></p><p><span class="hljs-attribute">debug2</span>: fd <span class="hljs-number">3</span> setting TCP_NODELAY</p><p><span class="hljs-attribute">debug2</span>: callback done</p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: open confirm rwindow <span class="hljs-number">0</span> rmax <span class="hljs-number">32768</span></p><p><span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">448</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">2693</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">channel_input_status_confirm</span>: type <span class="hljs-number">99</span> id <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug2</span>: PTY allocation request accepted <span class="hljs-literal">on</span> channel <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: rcvd adjust <span class="hljs-number">2097152</span></p><p><span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">channel_input_status_confirm</span>: type <span class="hljs-number">99</span> id <span class="hljs-number">0</span></p><p><span class="hljs-attribute">debug2</span>: shell request accepted <span class="hljs-literal">on</span> channel <span class="hljs-number">0</span></p><p>Last <span class="hljs-attribute">login</span>: Tue Jul <span class="hljs-number">22</span> <span class="hljs-number">17</span>:<span class="hljs-number">58</span>:<span class="hljs-number">15</span> <span class="hljs-number">2014</span> from <span class="hljs-number">222.131</span><span class="hljs-number">.6</span><span class="hljs-number">.36</span></p><p></code>

diff 比较下,结果如下:

<code><span class="hljs-number">80</span>,<span class="hljs-number">81</span>c80,<span class="hljs-number">81</span></p><p>&lt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">dh_gen_key</span>: priv key bits <span class="hljs-attribute">set</span>: <span class="hljs-number">138</span>/<span class="hljs-number">256</span></p><p>&lt; <span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">543</span>/<span class="hljs-number">1024</span></p><p>---</p><p>&gt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">dh_gen_key</span>: priv key bits <span class="hljs-attribute">set</span>: <span class="hljs-number">132</span>/<span class="hljs-number">256</span></p><p>&gt; <span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">485</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-number">89</span>c89</p><p>&lt; <span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">529</span>/<span class="hljs-number">1024</span></p><p>---</p><p>&gt; <span class="hljs-attribute">debug2</span>: bits <span class="hljs-attribute">set</span>: <span class="hljs-number">491</span>/<span class="hljs-number">1024</span></p><p><span class="hljs-number">103</span>c103</p><p>&lt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa (<span class="hljs-number">0x7f28a1df8bb0</span>)</p><p>---</p><p>&gt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">key</span>: <span class="hljs-regexp">/root/</span>.ssh/id_rsa (<span class="hljs-number">0x7f9577792bc0</span>)</p><p><span class="hljs-number">143</span>,<span class="hljs-number">195</span>c143,<span class="hljs-number">151</span></p><p>&lt; <span class="hljs-attribute">debug1</span>: Server accepts <span class="hljs-attribute">key</span>: pkalg ssh-rsa blen <span class="hljs-number">277</span></p><p>&lt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">input_userauth_pk_ok</span>: SHA1 fp <span class="hljs-attribute">a8</span>:<span class="hljs-number">19</span>:<span class="hljs-number">63</span>:<span class="hljs-attribute">d5</span>:<span class="hljs-attribute">be</span>:<span class="hljs-attribute">eb</span>:<span class="hljs-number">7</span><span class="hljs-attribute">c</span>:<span class="hljs-attribute">cd</span>:<span class="hljs-attribute">c2</span>:<span class="hljs-attribute">f9</span>:<span class="hljs-attribute">b5</span>:<span class="hljs-number">72</span>:<span class="hljs-attribute">c9</span>:<span class="hljs-number">84</span>:<span class="hljs-attribute">dc</span>:<span class="hljs-attribute">ec</span>:<span class="hljs-attribute">e1</span>:<span class="hljs-number">43</span>:<span class="hljs-number">24</span>:<span class="hljs-number">2</span>d</p><p>&lt; <span class="hljs-attribute">debug3</span>: sign_and_send_pubkey</p><p>&lt; <span class="hljs-attribute">debug1</span>: read PEM private key <span class="hljs-attribute">done</span>: type RSA</p><p>&lt; <span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">640</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">2117</span></p><p>&lt; <span class="hljs-attribute">debug1</span>: Authentication succeeded (publickey).</p><p>&lt; <span class="hljs-attribute">debug1</span>: channel <span class="hljs-number">0</span>: <span class="hljs-keyword">new</span> [client-session]</p><p>&lt; <span class="hljs-attribute">debug3</span>: <span class="hljs-attribute">ssh_session2_open</span>: <span class="hljs-attribute">channel_new</span>: <span class="hljs-number">0</span></p><p>&lt; <span class="hljs-attribute">debug2</span>: channel <span class="hljs-number">0</span>: send open</p><p>&lt; <span class="hljs-attribute">debug1</span>: Requesting <span class="hljs-literal">no</span>-more-sessions<span class="hljs-property">@openssh</span>.com</p><p>&lt; <span class="hljs-attribute">debug1</span>: Entering interactive session.</p><p>&lt; <span class="hljs-attribute">debug3</span>: Wrote <span class="hljs-number">128</span> bytes <span class="hljs-keyword">for</span> a total <span class="hljs-keyword">of</span> <span class="hljs-number">2245</span></p><p>&lt; <span class="hljs-attribute">debug2</span>: callback start</p><p>&lt; <span class="hljs-attribute">debug2</span>: <span class="hljs-attribute">client_session2_setup</span>: id <span class="hljs-number">0</span></p><p>&lt;</code>

来源URL:http://segmentfault.com/q/1010000000613569