当我使用 SSH 登录或按Ctrl+ Alt+后F1,输入密码后需要几秒钟才能最终显示以下内容:
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-28-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
Last login: Thu Jan 1 00:00:00 1970
Unable to connect to X server
Unable to connect to X server
user@host:~$
它正在做什么,导致它需要几秒钟才能进入 shell 提示符?我该如何加快速度?
答案1
“它在做什么导致它需要几秒钟才能进入 shell 提示符?”
它使用 RSA 建立安全、经过身份验证的连接,然后通过生成一次性密钥执行 Diffie-Hellman 棘轮来建立前向安全性。因此,SSH 的安全开销很大。