Not as good as Ubuntu, the default yum install sshpass cannot install sshpass, you need to use the following steps:
- cd /etc/yum.repos.d/
- wget http://download.opensuse.org/repositories/home:Strahlex/CentOS_CentOS-6/home:Strahlex.repo
- yum install sshpass