权限问题

1. 登陆对应ssh目录

cd /etc/ssh

2. 赋权

chmod 700 
chmod 744 ssh_host_ecdsa_key ssh_host_rsa_ key

3. 重启sshd服务

centos7:

systemctl restart sshd

centos6:

service sshd restart

相关文章: