261101-Windows.OpenSSH-sshd-config配置
Created At :
ssh config配置文件
C:\ProgramData\ssh
C:\ProgramData\ssh\sshd_config
%programdata%\ssh\sshd_config
sshd_config 配置参数:OpenSSH 10.4 之后 PubkeyAcceptedAlgorithms +ssh-rsa
GSSAPIAuthentication no
PubkeyAcceptedKeyTypes
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Port 22 ListenAddress 0.0.0.0 SyslogFacility LOCAL0 LogLevel QUIET PubkeyAuthentication yes PermitEmptyPasswords no PasswordAuthentication no AuthorizedKeysFile C:/Users/Administrator/.ssh/authorized_keys IgnoreUserKnownHosts no IgnoreRhosts yes Subsystem sftp sftp-server.exe
PermitRootLogin yes PubkeyAcceptedAlgorithms +ssh-rsa
|
sshd_config 配置参数:OpenSSH 8.5 之前 PubkeyAcceptedKeyTypes
PubkeyAcceptedKeyTypes 这个配置项在 OpenSSH 10.4 中已经不存在了。
sshd 在启动时解析配置文件遇到无法识别的指令,会直接判定为语法错误并拒绝启动。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Port 22 ListenAddress 0.0.0.0 SyslogFacility LOCAL0 LogLevel QUIET PubkeyAuthentication yes PermitEmptyPasswords no PasswordAuthentication no AuthorizedKeysFile C:/Users/Administrator/.ssh/authorized_keys IgnoreUserKnownHosts no IgnoreRhosts yes Subsystem sftp sftp-server.exe
PermitRootLogin yes GSSAPIAuthentication no
PubkeyAcceptedKeyTypes +ssh-rsa
|