SSH服务器配置全解析
1. Unix系统下的sshd2_config文件配置
1.1 用户相关设置
在Unix系统中, sshd2_config 文件的用户部分配置如下:
# PrintMotd yes
# CheckMail yes
# UserConfigDirectory “%D/.ssh2”
# UserConfigDirectory “/etc/ssh2/auth/%U”
# UserKnownHosts yes
# LoginGraceTime 600
# PermitEmptyPasswords no
# StrictModes yes
# IdleTimeOut 1h
相关选项说明如下表:
| 选项 | 描述 |
| — | — |
| PrintMotd | 启用(yes)或禁用(no)在登录时显示 motd 文件( /etc/motd )中的文本,可用于显示系统停机、法律声明和安全问题等信息。 |
| CheckMail | 启用(yes)或禁用(no)SSH服务器在用户认证后检查新邮件的功能。 |
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



