# by evan
SendEnv LANG LC_*
client: in ~/.ssh/config
# prevent connection from hanging
# set connection sharing
server: in /etc/ssh/ssd_config:
Because I reuse connections I do not run against maximum session limits (set with MaxStartups in sshd_config).
I also disabled pam and all other authentication methods in sshd_config except public key authentication. PAM has some inactivity timeout as well. Then there is the timeout in the bash shell (‘TMOUT=