Sian 发表于 2014-7-28 13:48:02

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

1、进入SSH的配置目录

# cd /etc/ssh

2、修改配置文件
# 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内容
# vi /etc/banner
把欢迎语或提示信息写入 /etc/banner(centos6.4)即可,简单的很!
页: [1]
查看完整版本: CentOS SSH登录增加欢迎页(Banner)