CentOS SSH登录增加欢迎页(Banner)

1、进入SSH的配置目录

[root@Crayfish ~]# cd /etc/ssh

2、修改配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@Crayfish ssh]# vi sshd_config 
 
#       $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $
 
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
 
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
 
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.
 
#Port 22
#ListenAddress 0.0.0.0
#ListenAddress ::
 
……

在末尾添加:
Banner /etc/banner

3、自定义banner内容
[root@Crayfish ssh]# vi /etc/banner

把欢迎语或提示信息写入 /etc/banner(centos6.4)即可,简单的很!

参考链接:CentOS 命令行登录欢迎词

Leave a Reply