https://blog.csdn.net/mcb520wf/article/details/83303792
随笔异常
ssh: Could not resolve hostname centos02: Temporary failure in name resolution

发现两台服务器如果进行ping操作可以进行ping通,然而却用主机名无法连接在ssh中也出现了问题。
解决方案:
vi /etc/hosts
查看主机名和ip地址是否对应

source /etc/hosts
https://blog.csdn.net/mcb520wf/article/details/83303792
ssh: Could not resolve hostname centos02: Temporary failure in name resolution

发现两台服务器如果进行ping操作可以进行ping通,然而却用主机名无法连接在ssh中也出现了问题。
vi /etc/hosts
查看主机名和ip地址是否对应

source /etc/hosts
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。