实践:
1)
sshpass -p "pwd123" ssh u@1.12.1.5 "cd /home/u; ls"
Linux Shell远程执行命令(命令行与脚本方式) - 沧海一滴 - 博客园 https://www.cnblogs.com/softidea/p/6855045.html