ssh-keygen 免交互, ssh首次交互免输入yes

ssh-keygen 免交互
$ ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa


ssh首次交互免输入yes

[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)? 

ssh -o stricthostkeychecking=no vnode2


你可能感兴趣的:(ssh-keygen 免交互, ssh首次交互免输入yes)