1. 程式人生 > >SSH 免密碼登入配置

SSH 免密碼登入配置

ssh-keygen -t rsa
cd .ssh/
cp id_rsa.pub authorized_keys
vi authorized_keys
新增別的節點pub。

SCP命令安裝
yum install openssh-clients

複製檔案到別的節點
scp authorized_keys [email protected]:~/.ssh/
scp authorized_keys [email protected]:~/.ssh/
chmod 700 ~/
chmod 600 ~/.ssh/authorized_keys

ssh node1
ssh node2
ssh node3