我有三台云服务器(centos7.2 64位),采用内网IP配置SSH互信。
执行总是报错如下:
ssh - keygen -t rsa -P
ssh: Could not resolve hostname -: Name or service not known
其中,hostname采用命令:
hostnamectl set-hostname bzg001设置
/etc/hostname也改了:
bzg001
/etc/hosts也设置了:
127.0.0.1 bzg001 localhost
172.27.0.14 bzg001 localhost
172.27.0.2 bzg002