could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法
2011-05-30 15:35
791 查看
症状:
# /usr/sbin/sshd
系统提示“Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting”
大致的意思就是需要某个key什么的。
解决办法如下:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@localhost.localdomain
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
Generating public/private rkey pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_rey.pub.
重启ssh,完成
转自:http://bcy21cn.blog.163.com/blog/static/140338267201026115347335/
我是输入命令/etc/init.d/ssh start后出现提示:
Could not load host key: /etc/ssh/ssh_host_dsa_key
然后直接输入ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
重启ssh,然后就好了
# /usr/sbin/sshd
系统提示“Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting”
大致的意思就是需要某个key什么的。
解决办法如下:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@localhost.localdomain
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
Generating public/private rkey pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_rey.pub.
重启ssh,完成
转自:http://bcy21cn.blog.163.com/blog/static/140338267201026115347335/
我是输入命令/etc/init.d/ssh start后出现提示:
Could not load host key: /etc/ssh/ssh_host_dsa_key
然后直接输入ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
重启ssh,然后就好了
相关文章推荐
- NetBSD could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法
- could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法
- 启动ssh服务时,提示Could not load host key: /etc/ssh/ssh_host_rsa_key
- 启动ssh服务时,提示Could not load host key: /etc/ssh/ssh_host_rsa_key
- could not load host key: /etc/ssh/ssh_host_rsa_key SSH无法连接
- sshd 无法启用的问题 Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ss
- 启动ssh服务时,提示Could not load host key: /etc/ssh/ssh_host_rsa_key
- ssh报错:Could not load host key:/etc/ssh/ssh_host_rsa_key&ssh_host_ecdsa_key&ssh_host_ed25519_key
- Could not load host key: /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key问题
- SSH 提示Could not load host key: /etc/ssh/ssh_host_rsa_key
- Could not load host key: /etc/ssh/ssh_host_rsa_key
- ubuntu下配置ssh遇到ssh_host_rsa_key和ssh_host_dsa_key无法加载解决办法
- 全志open-ssh Could not load host key: /etc/ssh/ssh_host_key问题
- ssh异常-Could not load host key: /etc/ssh/ssh_host_ed25519_key
- Linux系统 CentOS 7 Permission 0755 for /etc/ssh/ssh_host_rsa_key"问题解决办法
- 启动sshd时,报“Could not load host key”错
- eclipse 无法启动AVD,出现Starting emulator for AVD '' PANIC: Could not open: 错误提示的解决办法
- Android Emulator could not allocate o 无法启动安卓自带虚拟机解决办法
- Git 添加 SSH-KEY 报错 Could not open a connection to your authentication agent. 的解决办法
- ssh远程登录出现:RSA host key for *.*.*.* has changed...的解决办法