I am currently using xfce-terminal to connect via SSH to a local raspberry pi server (both running current bullseye). I am attempting to run a very long (about 120G) rsync -P command to, you know, do the rsyncing magic. Anyway, my ssh session keeps disconnecting after an unknown amount of time. I have mostly scoured google for solutions, none of which seem to work. The most agreed upon convention is using the ServerAliveInterval and ClientAliveInterval and I have them set to what I believe are the best options:
Client /etc/ssh/ssh_config:
ServerAliveInterval 240
Client $HOME/.ssh/config:
Host *
ServerAliveInterval 240
Server /etc/ssh/sshd_config:
ClientAliveInterval 60
I am keeping the *AliveCount settings on both sides at their default. But this is not working at all. Am I missing something? I would like to keep the client session alive PERMANENTLY until I close it out. I know this is a security issue, but I am not worried about it. My server is locked into my network with no ports available to the outside and everyone else in my network doesn't even know what ssh is. Also I have seen solutions using external programs like screen, but I would really like to keep it within the SSH configuration if I can. I feel like I am missing something quite trivial Thanks ahead of time for the help!
Client /etc/ssh/ssh_config:
ServerAliveInterval 240
Client $HOME/.ssh/config:
Host *
ServerAliveInterval 240
Server /etc/ssh/sshd_config:
ClientAliveInterval 60
I am keeping the *AliveCount settings on both sides at their default. But this is not working at all. Am I missing something? I would like to keep the client session alive PERMANENTLY until I close it out. I know this is a security issue, but I am not worried about it. My server is locked into my network with no ports available to the outside and everyone else in my network doesn't even know what ssh is. Also I have seen solutions using external programs like screen, but I would really like to keep it within the SSH configuration if I can. I feel like I am missing something quite trivial Thanks ahead of time for the help!
Statistics: Posted by tyklink — 2024-07-01 17:11 — Replies 3 — Views 76