https://www.reddit.com/r/bash/comments/hgcei7/tmux_and_timeouts/
tmux session time :
You got halfway through your post before revealing that the issue is SSH timeout. On the server, edit /etc/ssh/sshd_config, check or add these settings:
ClientAliveInterval 120
ClientAliveCountMax 720
In this example the timeout duration in seconds is the product of the two numbers (86,400 seconds or 24 hours). Change the second number to increase the total time.
After changing the settings:
$ sudo systemctl restart ssh
https://www.tecmint.com/increase-ssh-connection-timeout/
sudo vim /etc/ssh/sshd_config
ClientAliveInterval 3600
ClientAliveMaxCount 3
sudo systemctl reload sshd
https://www.simplified.guide/ssh/disable-timeout
No comments:
Post a Comment