在使用centOS7时,使用systemctl status sshd时,显示Could not load host key: /etc/ssh/ssh_host_rsa_key.pub,而且远程用secureCRT无法连接。百度中只有Could not load host key: /etc/ssh/ssh_host_rsa_key的解决方案,没有key.pub的方案,请问要怎样处理,重新生成公钥吗?
试一下 ssh-keygen 重新生成公钥