2025年10月3日 星期五

避免 ssh 斷線

SSH Client設定方式
1.編輯 ~/.ssh/config 加入
Host *
ServerAliveInterval 100

2.編輯 /etc/ssh/ssh_config 加入
ServerAliveInterval 100

SSH Client設定方式
編輯 /etc/ssh/sshd_config 加入
ClientAliveInterval 60
ClientAliveCountMax 3

沒有留言: