成功login之前的10秒SSH延迟

可能重复:
连接时ssh延迟

在Ubuntu 11.04机器上,我有一台运行在Virtualbox 4.0.4之外的科学Linux虚拟客户机。

当我从主机SSH到客人, 总是有10秒的暂停,而公钥显然是有效的。

在客户端,我看到:

debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply ----10 second pause---- debug1: Server accepts key: pkalg ssh-rsa blen 149 

它对应于服务器上的以下内容:

 Jul 11 20:53:05 localhost sshd[4275]: debug1: userauth-request for user ****** service ssh-connection method publickey Jul 11 20:53:05 localhost sshd[4275]: debug1: attempt 1 failures 1 Jul 11 20:53:05 localhost sshd[4275]: debug1: test whether pkalg/pkblob are acceptable ----10 second pause---- Jul 11 20:53:15 localhost sshd[4272]: debug1: PAM: setting PAM_RHOST to "192.168.56.1" Jul 11 20:53:15 localhost sshd[4272]: debug1: PAM: setting PAM_TTY to "ssh" Jul 11 20:53:15 localhost sshd[4272]: debug1: temporarily_use_uid: 500/500 (e=0/0) 

任何想法为什么拖延? 一旦连接,会议运行良好,没有任何滞后或绞刑。

您可能遇到反向DNS问题。 您连接的主机是否parsing源IP?