天天看點

day02 秘鑰生成,免密通路指令

hadoop免密登陸:

生成秘鑰:

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 

cat ~/id_dsa.pub >> ~/.ssh/authorized_keys 

scp id_dsa.pub [email protected]:~

/etc/hosts,主機名和IP配置檔案:  vi /etc/hosts回車,切換到編輯模式'i',手動添加

127.0.0.1         node1  localhost

192.168.80.102    node2

192.168.80.103    node3

192.168.80.104    node4

::1             localhost6.localdomain6 localhost6

~

來自為知筆記(Wiz)