1、使用ssh远程登录出现“ssh host key verification failed”:
- 输入命令:
ssh-keygen -R hostname(0.0.0.0)
2、再使用ssh登录时,出现“permission denied(publickey)”:
- 登录远程服务器,修改配置文件:
vim /etc/ssh/sshd_config - 修改“
PasswordAuthentication yes” - 重启服务
service ssh restart
1、使用ssh远程登录出现“ssh host key verification failed”:
ssh-keygen -R hostname(0.0.0.0)2、再使用ssh登录时,出现“permission denied(publickey)”:
vim /etc/ssh/sshd_configPasswordAuthentication yes”service ssh restart