# SSH Connection Client Timeout Issue ## a) Server config ```bash # vi /etc/ssh/sshd_config # send requset per 60s ServerAliveInterval 60 # no reponse over 3 times will be halted ServerAliveCountMax 3 ``` ## b) Client config ```bash # vi /etc/ssh/ssh_config # send requset per 60s ServerAliveInterval 60 # no reponse over 3 times will be halted ServerAliveCountMax 3 ``` ## c) Problem > warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory ```bash sudo vi /etc/ssh/ssh_config # comment it # SendEnv LANG LC_* ``` Reference : https://www.xiebruce.top/650.html Loading... # SSH Connection Client Timeout Issue ## a) Server config ```bash # vi /etc/ssh/sshd_config # send requset per 60s ServerAliveInterval 60 # no reponse over 3 times will be halted ServerAliveCountMax 3 ``` ## b) Client config ```bash # vi /etc/ssh/ssh_config # send requset per 60s ServerAliveInterval 60 # no reponse over 3 times will be halted ServerAliveCountMax 3 ``` ## c) Problem > warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory ```bash sudo vi /etc/ssh/ssh_config # comment it # SendEnv LANG LC_* ``` Reference : https://www.xiebruce.top/650.html © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏