1
2
3
4
5
6
7
8
9
10
11
vim /etc/ssh/sshd_config
 
#找不到匹配的host key算法
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
 
# 允许root用户登陆
PermitRootLogin yes
PasswordAuthentication yes