标签:.com shel ext ubuntu disk http lun splunk text
apt-get install sshpass
sshpass -p **your_password** ssh -o StrictHostKeyChecking=no "root@$ip" "du -sm /home/bone/ext_disk/splunk/var/lib"
参考:
https://www.cyberciti.biz/tips/linux-running-commands-on-a-remote-host.html
http://unix.stackexchange.com/questions/38737/ssh-login-with-clear-text-password-as-a-parameter
标签:.com shel ext ubuntu disk http lun splunk text
原文地址:http://www.cnblogs.com/bonelee/p/6255579.html