相关疑难解决方法(0)

如何加快我太慢的 ssh 登录?

运行ssh user@hostname需要大约 30 秒。这是场景:

  • 这是本地 LAN 上的 VM
  • Windows 和 Mac 机器获得即时登录
  • 正在使用 Debian,我可以使用 Ubuntu 机器进行复制
  • 有人使用 Ubuntu 说登录我的机器(本地 LAN)也是即时的
  • 使用主机名 IP 地址大约需要一半的时间(~15 秒)

[更新]

使用ssh -vvv user@hostname,这是它等待最多的地方:

debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
Run Code Online (Sandbox Code Playgroud)

然后在这里等一下:

debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found

debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' …
Run Code Online (Sandbox Code Playgroud)

ssh

49
推荐指数
3
解决办法
9万
查看次数

标签 统计

ssh ×1