脚本ssh-keygen新生成公钥私钥密钥对时,使用非交互式创建最好,用以下命令就可以ssh-keygen -t rsa -P "" -f /etc/ssh/ssh_host_rsa_key-P:私钥的密码,自动登录设置为空