ssh-keygen 免交互
[plain] view plain copy
$ ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa
ssh首次交互免输入yes
[plain] view plain copy
[root@node1 ~]# ssh vnode2
The authenticity of host 'vnode2 (192.168.122.20)' can't be established.
RSA key fingerprint is 15:1d:e3:1e:4b:ed:6f:da:4f:a8:e3:9e:5e:75:da:bd.
Are you sure you want to continue connecting (yes/no)?
[plain] view plain copy
ssh -o stricthostkeychecking=no vnode2