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 ~]# vi /etc/motd
Last login: Wed Jul 16 21:26:51 2014 from 123.66.179.215
*********************************************************************************
Welcome to aliyun Elastic Compute Service!
**********************************home or config*********************************