## 远程执行shell命令
ssh [user]@[server] '[command]' # eg.
ssh [email protected] 'uptime'
## 远程执行本地shell脚本
ssh [user]@[server] 'bash -s' < [local_script] # eg.
ssh [email protected] 'bash -s' < local_script.sh
## 远程执行shell命令
ssh [user]@[server] '[command]' # eg.
ssh [email protected] 'uptime'
## 远程执行本地shell脚本
ssh [user]@[server] 'bash -s' < [local_script] # eg.
ssh [email protected] 'bash -s' < local_script.sh