“systemctl restart sshd”
启动sshd服务异常,报错“Failed to start OpenSSH Server daemon”
。
使用sshd -t
命令检查sshd配置文件,返回关键信息gssapikexalgorithms
相关错误。
解决方法
- 禁用 GSSAPI 相关的 KEX 算法
编辑sshd配置文件,注释或删除 KexAlgorithms
中包含 gss-*
的条目。 - 安装 Kerberos 支持(如需 GSSAPI)
如果确实需要 GSSAPI/Kerberos 认证,则需安装相关软件包,再重启sshd