如图,这个debug信息是怎么调出来的?

桶丁 2013-07-08 11:32:03
如图,它输入ssh去连另一台linux,它就会打印出连接的debug信息。


调试信息:

01.zhouhh@zhhofs:~$ ssh -v 192.168.12.16
02.OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
03.debug1: Reading configuration data /etc/ssh/ssh_config
04.debug1: Applying options for *
05.debug1: Connecting to 192.168.12.16 [192.168.12.16] port 22.
06.debug1: Connection established.
07.debug1: identity file /home/zhouhh/.ssh/identity type -1
08.debug1: identity file /home/zhouhh/.ssh/id_rsa type -1
09.debug1: identity file /home/zhouhh/.ssh/id_dsa type -1
10.debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
11.debug1: match: OpenSSH_4.3 pat OpenSSH_4*
12.debug1: Enabling compatibility mode for protocol 2.0
13.debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2
14.debug1: SSH2_MSG_KEXINIT sent
15.debug1: SSH2_MSG_KEXINIT received
16.debug1: kex: server->client aes128-cbc hmac-md5 none
17.debug1: kex: client->server aes128-cbc hmac-md5 none
18.debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
19.debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
20.debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
21.debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
22.debug1: Host '192.168.12.16' is known and matches the RSA host key.
23.debug1: Found key in /home/zhouhh/.ssh/known_hosts:1
24.debug1: ssh_rsa_verify: signature correct
25.debug1: SSH2_MSG_NEWKEYS sent
26.debug1: expecting SSH2_MSG_NEWKEYS
27.debug1: SSH2_MSG_NEWKEYS received
28.debug1: SSH2_MSG_SERVICE_REQUEST sent
29.debug1: SSH2_MSG_SERVICE_ACCEPT received
30.debug1: Authentications that can continue: publickey,gssapi-with-mic,password
31.debug1: Next authentication method: gssapi-with-mic
32.debug1: An invalid name was supplied
33.Cannot determine realm for numeric host address
34.debug1: An invalid name was supplied
35.Cannot determine realm for numeric host address
36.debug1: An invalid name was supplied
37.debug1: Next authentication method: publickey
38.debug1: Trying private key: /home/zhouhh/.ssh/identity
39.debug1: Trying private key: /home/zhouhh/.ssh/id_rsa
40.debug1: Trying private key: /home/zhouhh/.ssh/id_dsa
41.debug1: Next authentication method: password
42.zhouhh@192.168.12.16's password:
43.debug1: Authentication succeeded (password).
44.debug1: channel 0: new [client-session]
45.debug1: Entering interactive session.
46.debug1: Sending environment.
47.debug1: Sending env LANG = zh_CN.UTF-8
48.Last login: Fri Dec 25 13:35:04 2009 from 192.168.11.146
...全文
142 点赞 收藏 1
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
pix77 2013-07-08
代码写的,还有-vvv呢,就是debug3级别
回复
相关推荐
发帖
系统维护与使用区
创建于2007-08-27

1.9w+

社区成员

系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
申请成为版主
帖子事件
创建了帖子
2013-07-08 11:32
社区公告
暂无公告