经过不懈的搜索终于找到ssh远程执行命令使用明文密码使用sshpass.
例子:
sshpass -p "sequoiadb" ssh root@localhost "ls /"
sshpass在centos无法直接安装
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:Strahlex/CentOS_CentOS-6/home:Strahlex.repo
yum install sshpass