1、参数修改:

/etc/ssh/sshd_config 问价里边的 printlastlog 设置为yes

/etc/ssh/sshd_config 问价里边的 printmotd 设置为yes

 

2、添加lastlog日子文件

/var/log/文件夹里边添加  lastlog文件。

 

3、添加登录欢迎语句

/etc/motd 文件中添加登录欢迎语句

 

posted on 2016-10-25 15:38  阳光小白  阅读(12107)  评论(0编辑  收藏  举报