macOS登录ssh连接配置

mac下ssh空闲一段时间自动断开的问题.

避免每次升级都要修改,所以这次就新增了这个配置

➜  ~ cat .ssh/config
Host *
    User root
    ServerAliveInterval 60
    ForwardAgent yes
    TCPKeepAlive no
    ControlMaster auto
    ControlPath ~/.ssh/tmp/connection-%r@%h:%p
    ControlPersist 4h
    Compression yes
Last modification:October 10th, 2019 at 10:20 pm
搞技术/肝文章不易,恳请随意打赏 OwO

Leave a Comment