答案1
如果您还添加-q
(uiet) 选项,它将抑制断开连接线和其他信息消息:
ssh -tq myserver.com "service rsyslog restart"
-q Quiet mode. Causes most warning and diagnostic messages to be suppressed.
如果您还添加-q
(uiet) 选项,它将抑制断开连接线和其他信息消息:
ssh -tq myserver.com "service rsyslog restart"
-q Quiet mode. Causes most warning and diagnostic messages to be suppressed.