This question already has an answer here:
I'd like to get a Linux command which runs in the background and writes something to the terminal screen every one minute. I am trying to keep
ssh session alive, I am using Cygwin for connection to the server but the connection is resetting every short time if nothing is written to the screen.
I already tried with
sshd_config option to solve the short connection time by changing
ServerAliveInterval 0 to
ServerAliveInterval 60 but this does not solve the problem.