linux 修改ssh banner
生活随笔
收集整理的這篇文章主要介紹了
linux 修改ssh banner
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- CentOS Linux release 8.5.2111
- CentOS Linux release 7.6.1810 (Core)
方法1:修改ssh banner
方法2:修改/etc/motd
/etc/motd即message of today(布告欄信息)。每次用戶登錄時,/etc/motd文件的內容會顯示在用戶的終端。
/etc/motd缺點:用戶登錄系統如果是圖形界面,這些信息就不會顯示。
方法3:在/etc/motd.d目錄下添加文件
shell> echo "welcome to server test-01" >> /etc/motd.d/hello檢查配置是否生效
重開ssh
參考
https://blog.csdn.net/yainyiyi123/article/details/24027969
https://blog.csdn.net/dream_dt/article/details/79531085
總結
以上是生活随笔為你收集整理的linux 修改ssh banner的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《使命召唤》为语音聊天推出 AI 审核,
- 下一篇: linux Figlet 转换字符字