วิธีไม่ให้ connection ของ ssh หลุดเมื่อ timeout
- ตั้งใน config ที่ไฟล์ ~/.ssh/config
- ใส่ค่าดังนี้
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
TCPKeepAlive yes
- save file หลังจากนั้น ssh ที่เชื่อมต่อใหม่ก็จะนำค่านี้ไปใช้งาน
วิธีไม่ให้ connection ของ ssh หลุดเมื่อ timeout
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
TCPKeepAlive yes