SSH Connection Timeout

a) Server config

# vi /etc/ssh/sshd_config

# send requset per 60s 
ServerAliveInterval 60 
# no reponse over 3 times will be halted
ServerAliveCountMax 3

b) Client config

# 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
sudo vi /etc/ssh/ssh_config

# comment it

# SendEnv LANG LC_*

Reference : https://www.xiebruce.top/650.html

Last modification:August 26th, 2020 at 05:48 pm
小编很用心去写文章的,大家伙们给点支持呗。