[CentOS] Problem with disconnecting SSH-sessions

Thu Dec 26 22:49:13 UTC 2019
H <agents at meddatainc.com>

On 12/26/2019 05:05 PM, H wrote:
> On 12/26/2019 04:45 PM, Gordon Messmer wrote:
>> On 12/26/19 12:59 PM, H wrote:
>>> Are my observations above still consistent with your hypothesis?
>>
>> Largely, yes.  I'm not sure why you'd be disconnected while transferring data (one of scp or sftp, right?), but it sounds like a DNAT-related limit.
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> Yes, I am using scp and sometimes, but not always, get disconnected within 10 minutes while transferring gigabyte files. I will try what you suggested in your previous post. I guess there is nothing I can change in the router itself?
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

I just looked at the settings in /etc/ssh/ssh_config on the workstation - which should apply to all users on it - I already had:

Host *

 TCPKeepAlive yes

 ServerAliveInterval 60

 ServerAliveCountMax 300

So, unless there are some other settings I should check, this should always apply when I open any ssh connection on the workstation, or?