3.5 SSH客户端配置优化
~/.ssh/config
包含了
- 避免在特定网络环境中连接被断掉的情况的设置
TCPKeepAlive=yes ServerAliveInterval=15 ServerAliveCountMax=6
- 使用压缩(这对于通过低带宽连接使用 scp 很有用)
Compression=yes
- 使用一个本地控制文件来开启到同一台服务器的多通道
ControlMaster auto ControlPath /tmp/%r@%h:%p ControlPersist yes
|
|