WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED Host key verification failed
远程服务器更换系统后 ,用php exec运行shell命令文件失败 ,出现远程上传文件失败,提示key验证失败。,但是在系统却可以执行成功shell命令文件成功
清除原来的key ssh-keygen -R ip
远程连接ssh root@ip
php配置的nginx环境中 我估计这是一个缓存 , 所以要把缓存更新好
cp ~/.ssh/known_hosts /var/www/.ssh/known_hosts
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED Host key verification failed最先出现在Python成神之路。
共有 0 条评论