SSHD 服务无法启动 “Could not load host key”

kangyuanxun 2015-04-28 08:32:33
在ARM的开发板上启动SSHD服务的时候报错
root@MYD-AM335x etc# /usr/sbin/sshd
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Could not load host key: /etc/ssh_host_ecdsa_key

但是在etc目录下已经有这几个文件了
root@MYD-AM335x etc# ls -lh /etc/ssh*
-rw-r--r-- 1 1008 1009 1.5K Sep 1 2014 /etc/ssh_config
-rw------- 1 root root 751 Jan 1 01:43 /etc/ssh_host_dsa_key
-rw-r--r-- 1 root root 605 Jan 1 01:43 /etc/ssh_host_dsa_key.pub
-rw------- 1 root root 314 Jan 1 01:44 /etc/ssh_host_ecdsa_key
-rw-r--r-- 1 root root 177 Jan 1 01:44 /etc/ssh_host_ecdsa_key.pub
-rw------- 1 root root 387 Jan 1 00:00 /etc/ssh_host_ed25519_key
-rw-r--r-- 1 root root 82 Jan 1 00:00 /etc/ssh_host_ed25519_key.pub
-rw------- 1 root root 965 Jan 1 00:00 /etc/ssh_host_key
-rw-r--r-- 1 root root 630 Jan 1 00:00 /etc/ssh_host_key.pub
-rw------- 1 root root 1.7K Jan 1 01:43 /etc/ssh_host_rsa_key
-rw-r--r-- 1 root root 397 Jan 1 01:43 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 1008 1009 3.5K Sep 1 2014 /etc/sshd_config

权限和用户也都没问题,实在不知道怎么解决了
...全文
169 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧