当我在进行MPI集群配置开始在每台主机上编译C程序
将C程序代码helloWorld.c上传到 每台主机的/opt/modules/mpi_share目录
cd /opt/modules/mpi_share
mpicc -o helloWorld helloWorld.c
在master上运行:
mpirun -n 3 -host master,host1,host2 ./helloWorld
出现报错:
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
提示没有这样的文件或目录,权限被拒绝,请重试。
解决方法:
sudo yum install openssh-askpass
成功解决问题!
如果安装完openssh-askpass,又出现报错“error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass
’”
解决办法:
echo 'unset SSH_ASKPASS' >>~/.bashrc && source ~/.bashrc
希望这篇文章对你有所帮助!