大数据学习——Linux-SSH报错:Could not resolve hostname centos02: Temporary failure in name resolution

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

 

posted on 2018-12-10 14:14  o_0的园子  阅读(13219)  评论(1编辑  收藏  举报