linux 的SSH启动失败Could not load host key
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 的SSH启动失败Could not load host key相关的知识,希望对你有一定的参考价值。
已经生成了公钥,在linux下面的命令如下:
carl@ubuntu:~$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
Generating public/private dsa key pair.
/home/carl/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Your identification has been saved in /home/carl/.ssh/id_dsa.
Your public key has been saved in /home/carl/.ssh/id_dsa.pub.
The key fingerprint is:
0e:72:c4:c5:f0:06:e2:97:8d:e4:ba:ff:f0:74:d0:65 carl@ubuntu
The key's randomart image is:
+--[ DSA 1024]----+
| . +o. |
| . = B. |
| . B + E |
| + . . o |
| o o S . |
| + o . |
| . . o . |
| . + . |
| ..o |
+-----------------+
carl@ubuntu:~$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
carl@ubuntu:~$ /etc/init.d/ssh start
* Starting OpenBSD Secure Shell server sshd Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
[ OK ]
该linux运行在虚拟机上,第一次安装后可以正常启动,但是以后怎么也启动不了,每次都是报这个错
Tomcat启动失败错误解决Could not publish server configuration for Tomcat v7.0 Server at localhost
今天又碰到了Tomcat启动失败的错误,错误提示如下:
Could not publish server configuration for Tomcat v7.0 Server at localhost.
Multiple Contexts have a path of "/organ".
意思很很清楚,有重名的节点,然后我根据百度的方法去tomcat安装目录conf下面的server.xml去找这个重名的节点,但是没有相关的<Context>节点,
后来我转念一想,会不会是我得Eclipse编译器下面所创建Tomcat的Servers工程里的配置文件有重复节点,接下来我进到Servers工程里的Server.xml一看,果真存在,删除掉Context这个节点,重新部署,启动,成功!
如图中所示,删除Context节点即可。
以上是关于linux 的SSH启动失败Could not load host key的主要内容,如果未能解决你的问题,请参考以下文章
系统之家Linux启动sshd服务报错could not load host怎么办怎么办
[转] Linux有问必答:如何修复“sshd error: could not load host key”
hadoop启动报错:localhost: ssh: Could not resolve hostname localhost
ssh: Could not resolve hostname问题终于解决了?
could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法