Please enable Javascript to view the contents

Linux经验-SSH配置

 ·  ☕ 1 分钟

3.5 SSH客户端配置优化

~/.ssh/config 包含了

  • 避免在特定网络环境中连接被断掉的情况的设置 TCPKeepAlive=yes ServerAliveInterval=15 ServerAliveCountMax=6
  • 使用压缩(这对于通过低带宽连接使用 scp 很有用) Compression=yes
  • 使用一个本地控制文件来开启到同一台服务器的多通道 ControlMaster auto ControlPath /tmp/%r@%h:%p ControlPersist yes
1
2
3
4
5
6
7
TCPKeepAlive=yes
ServerAliveInterval=15
ServerAliveCountMax=6
Compression=yes
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist yes

Reference

Linux常用命令行小技巧: 全面+有深度, 有点乱

80%的人都不会的,15个Linux实用技巧: 清晰,量少

30个高效的Linux命令技巧: Bash语法

1.1 什么是Bash?

分享

Hex
作者
Hex
CloudNative Developer

目录