連server自動斷線 - MAC

Table of Contents

如題

用終端機連server跑程式的時候 有時候一跑就是半小時一小時

但終端機會Write Failed:Connection to xxxx Broken Pipe

我的方法是輸入ssh -o ServerAliveInterval=60 username@IP_ADDRESS

但每次重開就要輸入再輸入一次

有沒有什麼設定可以讓他永遠不自動中斷連線?


--

All Comments

Frederica avatarFrederica2017-09-06
~/.ssh/config Host * ServerAliveInterval 14400
Puput avatarPuput2017-09-10
Dinah avatarDinah2017-09-10
Doris avatarDoris2017-09-14
學一下 screen 或 tmux.