大数据学习——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

原文地址:https://www.cnblogs.com/feifeicui/p/10096195.html