登录另一台linux主机并且执行相应的命令

[root@bogon ~]# cat a.sh 
#!/bin/bash
ssh root@192.168.0.98 'ls /root'
原文地址:https://www.cnblogs.com/effortsing/p/10470011.html