ubuntu10.04 sshd_config 配置文件 注解

本文档是Ubuntu 10.04系统中sshd_config配置文件的注解说明,详细解释了如何配置SSH服务,包括监听端口、协议、密钥、权限分离、认证方式、日志记录等多个方面,以确保系统的安全性和稳定性。
摘要由CSDN通过智能技术生成

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
    # 端口号
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
    #监听服务器的哪个网卡的ssh联机
#ListenAddress ::
#ListenAddress 0.0.0.0
    #使用的协议
Protocol 2
# HostKeys for protocol version 2
    #服务器密钥存放地址
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
    #v1的key存活时间
KeyRegenerationInterval 3600
    #公钥的长度
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
    #是否允许root登录
PermitRootLogin no
    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值