I am using ubuntu wsl on windows10. I use it to ssh into remote VMs on my corporate network. I can successfully ssh to VMs.
BUT If I leave it unattended for some time, the ssh connection automatically gets disconnected with this message:
client_loop: send disconnect: Connection reset by peer
Earlier I used puTTY to ssh into remote machines and the puTTY session would never terminate even if I left the session idle for days. I think it was because of this puTTY connection setting
Seconds between keepalives (0 to turn off) being set to
How can achieve the same in ubuntu wsl. I have tried adding
ConnectTimeout 0 in
/etc/ssh/ssh_config but it did not work.