1、参数修改:
/etc/ssh/sshd_config 文件里边的 printlastlog 设置为yes
/etc/ssh/sshd_config 文件里边的 printmotd 设置为yes
2、添加lastlog日子文件
/var/log/文件夹里边添加 lastlog文件。
3、添加登录欢迎语句
/etc/motd 文件中添加登录欢迎语句
1、参数修改:
/etc/ssh/sshd_config 文件里边的 printlastlog 设置为yes
/etc/ssh/sshd_config 文件里边的 printmotd 设置为yes
2、添加lastlog日子文件
/var/log/文件夹里边添加 lastlog文件。
3、添加登录欢迎语句
/etc/motd 文件中添加登录欢迎语句
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。