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.
nohup
to keep your program running and justpipe
the output to a file. – orezvani May 12 '16 at 23:56sshd_config
? If you want to solve this properly, provide some more detail we might point you to what you are doing wrong. – Anthon May 13 '16 at 05:17ServerAliveInterval
in thesshd_config
file is pointless (it's a client-side option). I suggest you re-read the answers in the duplicate question (particularly the accepted answer). – Chris Davies May 13 '16 at 08:13