首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过HTTP访问时覆盖SSH消息

通过HTTP访问时覆盖SSH消息
EN

Server Fault用户
提问于 2014-03-01 18:37:17
回答 2查看 597关注 0票数 0

如果您使用SSH端口(22)通过HTTP访问我的服务器,您将看到如下消息:

SSH-2.0-OpenSSH_5.9p1 Debian-5 ubuntu1.1

可以显示不同的信息吗?

EN

回答 2

Server Fault用户

回答已采纳

发布于 2014-03-01 18:40:51

Debian/Ubuntu版本标识是德比安主义,在标准OpenSSH中不存在。

您可以通过在DebianBanner no中设置/etc/ssh/sshd_config来禁用它。

最终结果将是:

代码语言:javascript
复制
SSH-2.0-OpenSSH_5.9p1

您不应该将其禁用为需要协商SSH协议连接

票数 7
EN

Server Fault用户

发布于 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.,您不能以这种方式删除版本字符串,但是使用它提供法律信息非常方便。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/579197

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档