sshd启动时提示:
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
再三检查了 /etc/ssh/ssh_host_ecdsa_key 文件是存在的,文件权限也没有问题。
网上搜索半天无果,后来想到可能是位长的问题,于是重新生成指定位长的 ecdsa key 文件
/usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" -b 521
重新生成 ecdsa key 后使用 /usr/sbin/sshd -t 测试,发现没有报错,问题解决。