美文网首页
MAC终端ssh连接服务器防止断开连接

MAC终端ssh连接服务器防止断开连接

作者: henryspace | 来源:发表于2018-02-15 01:57 被阅读0次

    1 打开MAC终端 /etc/ssh/ enter

    2 sudo vim ssh_config (必须用管理员权限编辑,否则无法编辑)

    3 shift + i 进入编辑模式, 在host*下面加入 ServerAliveInterval 60 一项, 如下图

    image

    4 shift + : 输入wq退出

    5 到此完成, 连接你的服务器试试效果吧。

    注:原文来自 http://blog.csdn.net/sandyloo/article/details/74979817

    相关文章

      网友评论

          本文标题:MAC终端ssh连接服务器防止断开连接

          本文链接:https://www.haomeiwen.com/subject/kapytftx.html