将 Ubuntu 从 14.04 升级到 16.04 后,我遇到了一些问题。我尝试通过 SSH 与某些服务器建立 SSH 连接,但在某些情况下升级后,我有以下输出:
Unable to negotiate with 10.13.45.221 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Run Code Online (Sandbox Code Playgroud)
我知道添加这个: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost
但也许是另一种全局启用它并像 14.04 一样仅使用 ssh user@host 的方法?