custom your motd

http://www.mewbies.com/how_to_customize_your_console_login_message_tutorial.htm

 

1. REMOVE LAST LOGIN:                                                         ▐▌
 █ ``````````````````                                                         ▐▌
 █ I do not recommend removing the 'Last login' statement because if someone  ▐▌
 █ did gain access to your account you'll see an IP that isn't yours (if they ▐▌
 █ didn't cover their tracks that is). So what I have done is removed it from ▐▌
 █ the standard MOTD and added it to our MOTD script below so that visually   ▐▌
 █ it looks better. To remove it (later we'll add it back):                   ▐▌
 █ pico /etc/ssh/sshd_config                                                  ▐▌
 █ Change:  PrintLastLog yes                                                  ▐▌
 █ To:      PrintLastLog no                                                   ▐▌
 █                                                                            ▐▌
 █ Restart your ssh server for the changes to take affect:                    ▐▌
 █ /etc/init.d/ssh restart 

2. 修改欢迎语, 针对opensuse
vim /etc/motd

posted @ 2019-06-20 17:35  kissrule  阅读(187)  评论(0编辑  收藏  举报