# 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
ubuntu10.04 sshd_config 配置文件 注解
最新推荐文章于 2024-09-12 12:35:21 发布
本文档是Ubuntu 10.04系统中sshd_config配置文件的注解说明,详细解释了如何配置SSH服务,包括监听端口、协议、密钥、权限分离、认证方式、日志记录等多个方面,以确保系统的安全性和稳定性。
摘要由CSDN通过智能技术生成