SSH异常“Failed to start OpenSSH Server daemon”问题排查

简介: SSH异常“Failed to start, OpenSSH Server daemon”的问题排查

SSH无法正常启动,运行service sshd status 结果如下,没有明显的异常

ssh1

sshd -t

测试一下
ssh2
错误就很明显了

vi /etc/ssh/sshd_config

将对应的行先注释掉重启失败,查看详细信息

systemctl status sshd.service

ssh3

/usr/sbin/sshd -t

测试(其实错误信息已经很明显了,再看详细点的)

ssh4

根据提示,把涉及的key文件全部改成600后

/usr/sbin/sshd -t

测试没有报错了,启动服务,正常登陆( sshd –t 非常有用)

-t      Test mode.  Only check the validity of the configuration file and

            sanity of the keys.  This is useful for updating sshd reliably as

            configuration options may change.
目录
相关文章
|
2月前
|
网络安全 开发工具 数据安全/隐私保护
openssh 升级后ssh远程登录报错Permission denied, please try again.
openssh 升级后ssh远程登录报错Permission denied, please try again.
506 3
|
2月前
|
安全 网络安全 算法框架/工具
SSH高版本连接问题排查
【6月更文挑战第21天】SSH高版本连接问题排查
141 0
|
7天前
|
网络安全 容器
SSH——ssh: rejected: administratively prohibited (open failed)
SSH——ssh: rejected: administratively prohibited (open failed)
8 0
|
2月前
|
监控 安全 Linux
【权限维持】Linux&OpenSSH&PAM后门&SSH软链接&公私钥登录
【权限维持】Linux&OpenSSH&PAM后门&SSH软链接&公私钥登录
|
1月前
|
网络安全 数据安全/隐私保护
服务器密码登录出现了:SSH connection failed: connect ECONNREFUSEDxxxxxxxx:22 * Xshell提示 SSH connection fa
服务器密码登录出现了:SSH connection failed: connect ECONNREFUSEDxxxxxxxx:22 * Xshell提示 SSH connection fa
|
2月前
|
网络安全 数据安全/隐私保护
高版本SSH无法连接问题排查过程
【6月更文挑战第21天】高版本SSH无法连接问题排查过程
44 0
|
10月前
|
安全 Linux 网络安全
【工具使用】几款优秀的SSH连接客户端软件工具推荐FinalShell、Xshell、MobaXterm、OpenSSH、PUTTY、Terminus、mRemoteNG、Terminals等
【工具使用】几款优秀的SSH连接客户端软件工具推荐FinalShell、Xshell、MobaXterm、OpenSSH、PUTTY、Terminus、mRemoteNG、Terminals等
22432 0
|
9月前
|
网络安全
SNETCracker.exe 2022/1/26 31:13:29----检查12.26.20.1:SSH登录发生异常!未能加载文件或程序集“ChilkatDotNet4.dll”或它的某一个依赖项
SNETCracker.exe 2022/1/26 31:13:29----检查12.26.20.1:SSH登录发生异常!未能加载文件或程序集“ChilkatDotNet4.dll”或它的某一个依赖项
297 0
|
3月前
|
安全 Linux Shell
Linux服务器配置SSH免密码登录后,登录仍提示输入密码(一次真实的问题排查解决记录)
Linux服务器配置SSH免密码登录后,登录仍提示输入密码(一次真实的问题排查解决记录)
264 0
|
3月前
|
分布式计算 安全 网络协议
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
385 0