- 論壇徽章:
- 0
|
命令都一樣 ssh -vvv 10.78.208.72
正常應該是這樣的:
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp 63:cb:9d:06:21:5c:e2:d6:29:cb:f6:5b:94:96:72:84
debug3: sign_and_send_pubkey: RSA 63:cb:9d:06:21:5c:e2:d6:29:cb:f6:5b:94:96:72:84
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
這樣就能ssh登錄成功。
當出現(xiàn)錯誤的時候會這樣:
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp 63:cb:9d:06:21:5c:e2:d6:29:cb:f6:5b:94:96:72:84
debug3: sign_and_send_pubkey: RSA 63:cb:9d:06:21:5c:e2:d6:29:cb:f6:5b:94:96:72:84
debug1: read PEM private key done: type RSA
Connection to 10.78.208.72 timed out while waiting to read
這時候就無法ssh登錄了。
我用腳本測試了1000次登錄,837次登錄成功,163次登錄失敗。
/var/log/messages里面沒有任何報錯或提示。
請教各位高手,這個問題可能出現(xiàn)在什么地方。
這是ssh的配置文件,參考其他正常的主機配置,沒有不同的地方:
cat /etc/ssh/sshd_config|grep -v "#"|sort -n
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_IDENTIFICATION LC_ALL
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AuthorizedKeysFile .ssh/authorized_keys
ClientAliveInterval 60
PasswordAuthentication yes
Subsystem sftp /usr/lib64/ssh/sftp-server
UseDNS no
UsePAM yes
X11Forwarding yes |
|