如果您使用SSH端口(22)通过HTTP访问我的服务器,您将看到如下消息:
SSH-2.0-OpenSSH_5.9p1 Debian-5 ubuntu1.1
可以显示不同的信息吗?
发布于 2014-03-01 18:40:51
Debian/Ubuntu版本标识是德比安主义,在标准OpenSSH中不存在。
您可以通过在DebianBanner no中设置/etc/ssh/sshd_config来禁用它。
最终结果将是:
SSH-2.0-OpenSSH_5.9p1您不应该将其禁用为需要协商SSH协议连接。
发布于 2014-03-01 19:49:03
在/etc/ssh/sshd_config中有一个Banner选项:The contents of the specified file are sent to the remote user before authentication is allowed. If the argument is “none” then no banner is displayed. This option is only available for protocol version 2. By default, no banner is displayed.,您不能以这种方式删除版本字符串,但是使用它提供法律信息非常方便。
https://serverfault.com/questions/579197
复制相似问题