使用以下.ssh/config配置:
.ssh/config
ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r ControlPersist 4h
如何在 4 小时前关闭持久连接?
我知道你可以建立新的连接,但是如何关闭它们(全部)?
也许有一种方法可以显示所有持久连接并单独处理它们,但我找不到它。
ssh connection-sharing
connection-sharing ×1
ssh ×1