成功解决:ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory Permission denie

当我在进行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.

提示没有这样的文件或目录,权限被拒绝,请重试。
成功解决:ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory Permission denie_第1张图片
解决方法:

sudo yum install openssh-askpass

成功解决:ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory Permission denie_第2张图片
成功解决:ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory Permission denie_第3张图片
成功解决问题!

如果安装完openssh-askpass,又出现报错“error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass’”
在这里插入图片描述

解决办法:

echo 'unset SSH_ASKPASS' >>~/.bashrc && source ~/.bashrc

希望这篇文章对你有所帮助!

你可能感兴趣的:(大数据,系统运维,虚拟机,大数据,c#,c++,MPI)