Mac 保持会话,需要在修改 ssh配置文件 ssh_config 以下两项参数
先进入 /etc 找到ssh_config
Host *
ControlMaster auto
ControlPath /tmp/.ssh-%r@%h:%p