## 远程执行shell命令
ssh [user]@[server] '[command]' # eg.
ssh root@192.168.1.1 'uptime'
## 远程执行本地shell脚本
ssh [user]@[server] 'bash -s' < [local_script] # eg.
ssh root@192.168.1.1 'bash -s' < local_script.sh
2022-05-17 12:31:42
## 远程执行shell命令
ssh [user]@[server] '[command]' # eg.
ssh root@192.168.1.1 'uptime'
## 远程执行本地shell脚本
ssh [user]@[server] 'bash -s' < [local_script] # eg.
ssh root@192.168.1.1 'bash -s' < local_script.sh