Unable to run sshpass command in centOS [closed]

末鹿安然 提交于 2019-12-01 21:39:11

Check if your shell knows the locations of sshpass

which sshpass

If it doesnt give any output use find command to find the location of the executable:

find / -name sshpass

If you find the path, you can either use the full path of the executable:

/path/to/sshnpass

Or add the path to the PATH environmental variable, so that your shell can locate it:

export PATH=$PATH:/path/to/

Or the issue might be completely different. sshpass might not be able to find some other dependency. "ssh" client might not be installed. Or your syntax might be wrong:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!