SSH免密登录功能配置
我有三台虚拟机,其中一台主机,两台克隆机
192.168.159.130 hadoop01 (主机)
192.168.159.128 hadoop02
192.168.159.129 hadoop03
- 其中,免密登录需要两两相登录(并且与自己也需要做,因为后续集群的搭建和初体验需要),即三台虚拟机需要设置免密登录9次,即
hadoop01->hadoop01/ hadoop02/ hadoopo3
hadoop02->hadoop01/ hadoop02/ hadoopo3
hadoop03->hadoop01/ hadoop02/ hadoopo3
hadoop01 免密登录hadooop02
ssh-keygen -t rsa
ll -a
cd .ssh
ll