隐藏ssh的banner信息
1.需要修改ssh源文件 version.h 中 define SSH_VERSION
的内容
#define SSH_VERSION "OpenSSH_Welcome"
#define SSH_PORTABLE "p1"
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
2.编译源码安装Openssh
3.重启sshd服务
$ systemctl daemon-reload
$ systemctl restart sshd.service
4.验证是否成功
$ telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_Welcome