年年有"余"

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2590|回复: 0

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

[复制链接]
  • TA的每日心情
    奋斗
    2022-12-13 21:26
  • 签到天数: 371 天

    [LV.9]以坛为家II

    发表于 2014-7-28 13:48:02 | 显示全部楼层 |阅读模式
    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)即可,简单的很!
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    手机版|小黑屋|Archiver|iOS开发笔记 ( 湘ICP备14010846号 )

    GMT+8, 2024-5-2 09:09 , Processed in 0.044723 second(s), 19 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表