1、进入SSH的配置目录
[root@Crayfish ~]# cd /etc/ssh
2、修改配置文件
[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)即可,简单的很!
|