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

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

sshd -t

测试一下

错误就很明显了

vi /etc/ssh/sshd_config

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

systemctl status sshd.service

/usr/sbin/sshd -t

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

根据提示,把涉及的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.
时间: 2024-09-17 09:42:16

SSH异常“Failed to start OpenSSH Server daemon”问题排查的相关文章

GConf error:Failed to contact configuration server

Linux系统运行一直正常,但是图形界面使用root账号登录时遇到下面错误,第一次遇到这么怪异的状况 具体错误信息如下所示: GConf error:Failed to contact configuration server;some possible cause are that you need to enable TCP/IP networking for ORBIT or you have stale NFSlocks due to a system crash,see http://

ssh 注解-ssh注解,获取不到server。

问题描述 ssh注解,获取不到server. web.xml <?xml version="1.0" encoding="UTF-8"?> xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://jav

appium failed to connect to server 怎么解决?

问题描述 appium failed to connect to server 怎么解决? 1.win7上运行appium 2.配置好其中的变量和应用等 3.运行模拟器,使用放大镜,点击刷新 之后报 "Failed to connect to server. Please check that it is running".请问怎么解决? 解决方案 安装完mysql后,登录提示密码不对 然后使用mysqladmin提示登录失败: mysqladmin: connect to serve

Sql Server CPU 性能排查及优化的相关 Sql

Sql Server CPU 性能排查及优化的相关 Sql 语句,非常好的SQL语句,记录于此: --Begin Cpu 分析优化的相关 Sql --使用DMV来分析SQL Server启动以来累计使用CPU资源最多的语句.例如下面的语句就可以列出前50名.select c.last_execution_time,c.execution_count,c.total_logical_reads,c.total_logical_writes,c.total_elapsed_time,c.last_e

Tomcat7+Spring3异常Failed to start component

我做的一个考试系统,使用了hibernate和spring,原来使用的tomcat版本是6,后来把tomcat换成了apache-tomcat-7.0.30-windows-x64,spring的版本是:3.1 结果启动tomcat时报错如下: .6. Feb 27, 2013 12:18:00 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [

[ssh ][异常]The type org.springframework.dao.support.DaoSupport cannot be resolved........

写spring的时候,使用SqlMapClientDaoSupport,结果报出异常: The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files   上网搜索了一下:发现有些地方说,把spring-core-xx.jar换成 spring.jar.可是spring包里边没有这个jar. 后来发现,要添加

ssh整合中,使用sql server遇到的问题,换成mysql没有问题,但是却不能自动添加表结构,请赐教

问题描述 最近在搭建ssh框架,在最后的时刻,遇到了这个问题,我用的是sqlserver,首先,驱动包没问题,我以前一直在用这个驱动包,2013-11-0314:43:47,152ERROR[org.springframework.web.context.ContextLoader]-Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithnam

38.3. ircd-irc2 - The original IRCNet IRC server daemon

Installation sudo apt-get install ircd-irc2 Configuration $ sudo vim /etc/ircd/ircd.conf $ sudo /etc/init.d/ircd-irc2 start Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a&g

linxu中安装配置高性能SSH服务器详解

HPN-SSH 是一款高性能的SSH Server,主要通过Patch补丁的方式集成到OpenSSH得到应用. 根据官方的各种数据展示,在数据传输上的性能是OpenSSH的10倍. 如果我们采用了OpenSSH通道进行数据传输,比如通过SCP,Rsync等方式,那么采用HPN-SSH是一个不错的选择. 我的思路是将HPN-SSH整个编译安装到/opt/hpn-ssh目录下面,同时绑定6022号端口与指定特定路径的PID文件,这样就可以与系统原有的OpenSSH同时运行,互不影响. 下面是具体的安