Skip to content

Instantly share code, notes, and snippets.

@nanmi
Last active March 30, 2021 10:25
Show Gist options
  • Save nanmi/dea927edbc52d60f47f3d554fe537f9d to your computer and use it in GitHub Desktop.
Save nanmi/dea927edbc52d60f47f3d554fe537f9d to your computer and use it in GitHub Desktop.
自定义SHELL LOGO

自定义logo

$ vim /etc/ssh/sshd_config
#文档末尾加入
Banner /etc/ssh/my_banner

创建

$ touch /etc/ssh/my_banner

安装figlet

$ sudo apt-get install figlet
# 或者
$ yum -y install figlet

生成logo并加入

$ figlet HUAHUI > /etc/ssh/my_banner

重启ssh服务

$ systemctl restart sshd
# or
$ /etc/init.d/ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment