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

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐