无口令漫游
###############################################
cat > ~/hosts.txt<<EOF
10.0.0.102 root a123456!
10.0.0.103 root a123456!
10.0.0.104 root a123456!
EOF
chmod 600 ~/hosts.txt
###############################################
cat > ~/ssh-agent.sh << EOF
#!/bin/bash
##
## 创建ssh私钥/公钥对
rmp -qa | grep expect || yum install -y expect
/usr/bin/expect << END
spwan ssh-keygen
expect