SSH安全信任
1、在~/.ssh目录下生成钥id_rsa.pub(公钥)和id_rsa
ssh-keygen
2、将公钥发到被管节点的root用户下的.shh目录,生成authorized_keys
ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.2.100
3、验证是否成功
ssh root@192.168.2.100
4、如果提示Failed to connect to the host via ssh
执行:
chown username: /home/username/.ssh
chown username: /home/username/.ssh/*
chmod 700 /home/username/.ssh
chmod 600 /home/username.ssh/*
---------------------------------------------------------
恐惧是因为努力的还不够,加油 ~~---------------------------------------------