SSHD 服务无法启动 “Could not load host key”
在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
权限和用户也都没问题,实在不知道怎么解决了