Speeding up SSH Session Creation

通过 ControlMaster 对 OpenSSH 进行加速,减少系统资源消耗

One way to enable this feature is to add the following to your~/.ssh/config:

Host *

ControlMaster auto

ControlPath ~/.ssh/sockets/%r@%h-%p

ControlPersist 600


tips: 设置controlmaster后,多节点并行出现错误:muxserver_listen bind(): Read-only file system

这个是因为神马集群home目录在计算节点不可写,將ControlPath 改成/tmp/sockets/%r/@%h-%p即可