Merged two ssh configuration suggestion blocks

This commit is contained in:
delucks 2015-06-16 22:41:05 -04:00
parent d9f6bbdadc
commit 4519925396

View file

@ -105,16 +105,12 @@ Scope:
- In ssh, knowing how to port tunnel with `-L` or `-D` (and occasionally `-R`) is useful, e.g. to access web sites from a remote server. - In ssh, knowing how to port tunnel with `-L` or `-D` (and occasionally `-R`) is useful, e.g. to access web sites from a remote server.
- It can be useful to make a few optimizations to your ssh configuration; for example, this `~/.ssh/config` contains settings to avoid dropped connections in certain network environments, and use compression (which is helpful with scp over low-bandwidth connections): - It can be useful to make a few optimizations to your ssh configuration; for example, this `~/.ssh/config` contains settings to avoid dropped connections in certain network environments, use compression (which is helpful with scp over low-bandwidth connections), and multiplex channels to the same server with a local control file:
``` ```
TCPKeepAlive=yes TCPKeepAlive=yes
ServerAliveInterval=15 ServerAliveInterval=15
ServerAliveCountMax=6 ServerAliveCountMax=6
Compression=yes Compression=yes
```
- To lower network overhead, this `~/.ssh/config` contains settings to multiplex channels to the same server with a local control file:
```
ControlMaster auto ControlMaster auto
ControlPath /tmp/%r@%h:%p ControlPath /tmp/%r@%h:%p
ControlPersist yes ControlPersist yes