1./etc/ssh/sshd_config文件中PrintMotd 属性修改为 yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
PrintMotd yes
2.没有该/etc/motd文件新建一个,在里面添加内容,登录后就会显示
[root@xx ~]# cat /etc/motd
端口 项目 重启或启动脚本
80 nginx /usr/local/nginx/sbin/nginx