pssh 可以实现多台机器并行安装
sshpass 可以传递密码,针对没有免密的情况
参考ssh-cluster-administration
sshpass -f remotePasswordFile parallel-ssh -I -A -h hostlist "sudo -S apt-get dist-upgrade" < remoteRootPasswordFile
“remotePasswordFile” contains your password to log in to the remote computer. Concerning parallel-ssh, -I reads from stdin and -A asks for a password. For sudo, -S reads the password from stdin here “remoteRootPasswordFile”.
简化一点就是
sshpass -f passwd parallel-ssh -I -A -h hostlist cmds
miniconda免交互式安装
bash ~/miniconda.sh -b -p $HOME/miniconda