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.
目录
相关文章
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
207 0
在使用SSH+Spring开发webservice ,报的一些异常及处理方法
|
6月前
|
网络安全
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”或它的某一个依赖项
167 0
|
3天前
|
分布式计算 安全 网络协议
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
Linux【问题记录 04】SSH突然无法连接排查2个小时最终解决Failed to start OpenSSH server daemon及阿里云服务器的 kdevtmpfsi 挖矿病毒处理
224 0
|
12月前
|
网络安全
ssh到图形界面时报:X11 forwarding request failed on channel 0
在本地主机sshd的配置文件/etc/ssh/sshd_config加两行
176 0
|
12月前
|
Linux 网络安全 数据安全/隐私保护
[✔️]vscode通过ssh连接远程server
[✔️]vscode通过ssh连接远程server
199 0
|
Linux Shell 网络安全
【Linux】——在Xshell输入ssh root@公网ip进行远程连接Linux失败,显示(port 22): Connection failed的完美解决方法
【Linux】——在Xshell输入ssh root@公网ip进行远程连接Linux失败,显示(port 22): Connection failed的完美解决方法
638 0
|
Ubuntu 网络安全 数据安全/隐私保护
XShell 通过 ssh 连接(vm 中的)Ubuntu Server
XShell 通过 ssh 连接(vm 中的)Ubuntu Server
282 1
XShell 通过 ssh 连接(vm 中的)Ubuntu Server
|
Ubuntu Linux 网络安全
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
274 0
Ubuntu的ssh免密登录出现错误:sign_and_send_pubkey: signing failed: agent refused operation
ssh2 Connection .connect()方法抛出连接过早关闭异常
ssh2 Connection .connect()方法抛出连接过早关闭异常
ssh2 Connection .connect()方法抛出连接过早关闭异常
|
固态存储 网络协议 Linux
The remote SSH server rejected X11 forwarding request
The remote SSH server rejected X11 forwarding request
358 0
The remote SSH server rejected X11 forwarding request