Monday, February 23, 2009

016 查看SSH会话的统计信息

要想获得一些有用的有关当前会话的统计信息可以使用下面的命令,注意这个命令只在SSH2中支持:
1.登录到远程主机
localhost ssh -l jsmith remotehost

2.在远程主机输入ssh转义字符~加上s参数可以查看当前会话的统计信息
remotehost  [注意: ~s 是不会再你的命令行上显示的] 

remote host: remotehost
local host: localhost
remote version: SSH-1.99-OpenSSH_3.9p1
local version: SSH-2.0-3.2.9.1 SSH Secure
Shell (non-commercial)
compressed bytes in: 1506
uncompressed bytes in: 1622
compressed bytes out: 4997
uncompressed bytes out: 5118
packets in: 15
packets out: 24
rekeys: 0
Algorithms:
Chosen key exchange algorithm: diffie-hellman-
group1-sha1
Chosen host key algorithm: ssh-dss
Common host key algorithms: ssh-dss,ssh-rsa
Algorithms client to server:
Cipher: aes128-cbc
MAC: hmac-sha1
Compression: zlib
Algorithms server to client:
Cipher: aes128-cbc
MAC: hmac-sha1
Compression: zlib

localhost$

No comments:

Post a Comment