创建banner文件
Banner就是登录时显示的信息,将想显示的内容写到Banner上,在别的主机通过ssh登录时就会看到自定义的登录信息
touch /etc/ssh/ssh_banner
echo "Wecome to use ssh !!!" > /etc/ssh/ssh_banner
修改sshd_config配置文件
[root@fyq ~]# vim /etc/ssh/sshd_config
#Banner下指定banner配置文件
#Banner none
Banner /etc/ssh/ssh_banner
重启sshd服务
systemctl restart sshd
验证
用其它主机 ssh 登录测试