Ubuntu經常使用配置記錄(雜)

配置SSH鏈接不斷線vim

sudo vim /etc/ssh/ssh_config

添加下面兩個參數bash

TCPKeepAlive yes
ServerAliveInterval 300

解釋:TCPKeepAlive :保持鏈接;服務器

        ServerAliveInterval 300 :每隔5分鐘發送一個數據包到服務器,表示客戶端還處於「活」的狀態。
ssh

相關文章
相關標籤/搜索