linux - Putty 连接速度快,Ubuntu (linux) 终端不行

标签 linux ubuntu ssh putty

当我使用 PUTTY 通过 Windows 在我的云中进行连接时,连接最多可在大约 3 秒内建立。

当我通过 Ubuntu 连接时,它是“加载、加载、加载”......大约 10 秒后要求输入密码,然后再等待 2 秒,它连接。

这是为什么?

[编辑]
[调试] -v

debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Unspecified GSS failure.  Minor code may provide more information


debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/patrick/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/patrick/.ssh/id_dsa
debug1: Trying private key: /home/patrick/.ssh/id_ecdsa
debug1: Next authentication method: password

最佳答案

尝试通过 ip 而不是主机名连接。当名称解析花费的时间过长时,有时会出现滞后。

关于linux - Putty 连接速度快,Ubuntu (linux) 终端不行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13210791/

相关文章:

c - 在后台运行 gdbserver 调试程序并不时使用 gdb 连接到它

linux - 有条件地删除 shell 脚本中的新行

c - 如何修改makefile以便我可以在ARM平台上运行代码?

ubuntu - 有没有办法将winsock lib从windows移动到ubuntu?

ssh - 使用PuTTY的tail -f挂起

linux - shell 脚本 : parse blank spaces correctly

c - numactl --membind

linux - 在 Windows 上的 Ubuntu 上的 Bash 上设置 $PATH 的问题(Linux 子系统)

django - 使用 django 通过 SSH 隧道连接到远程服务器

svn - Hudson “Perform Maven Release”无法在其他端口上提交svn + ssh