vim /etc/ssh/ssh_config

找到

StrictHostKeyChecking 改为 no

hadoop集群中很实用。


注意:不是/etc/ssh/sshd_config