我可以安全地禁用服务器上的 SSH-1 访问吗?

IQA*_*eas 3 ssh legacy

SSH-2 已经问世近十年了。我至少知道当前连接到我的服务器的所有计算机都使用更新的版本 2 协议。考虑到这一点,禁用或阻止 SSH-1 有任何好处(安全性或其他方面)吗?

我是否可以安全地禁用服务器通过 SSH 协议版本 1 进行的任何访问,同时仍然允许使用版本 2 的 SSH 客户端访问服务器,而不破坏任何内容?

(还有一个额外的问题,如果有人知道在哪里可以找到使用统计信息)即使该服务器后来被更多人使用,但实际上有人仍在使用 SSH-1 协议的可能性有多大?

小智 5

就在这里。

\n\n
Protocol\nSpecifies the protocol versions \nsshd(8) supports. The possible \nvalues are \xe2\x80\x981\xe2\x80\x99 and \xe2\x80\x982\xe2\x80\x99. Multiple \nversions must be comma-separated. \nThe default is \xe2\x80\x982\xe2\x80\x99. Note that the order \nof the protocol list does not indicate \npreference, because the client selects \namong multiple protocol versions \noffered by the server. Specifying \xe2\x80\x9c2,1\xe2\x80\x9d \nis identical to \xe2\x80\x9c1,2\xe2\x80\x9d.\n
Run Code Online (Sandbox Code Playgroud)\n\n

有关更多配置选项,请参阅http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/sshd_config.5?query=sshd%5fconfig&sec=5 。

\n\n

不建议使用 SSH-1,因此您应该强制用户使用 SSH-2,以确保您和您的用户的安全。

\n\n

99.9% 的应用程序使用 SSH-2,因此您不会破坏任何内容。

\n