3 ms·
Why don’t you wait for ssh to respond if you need it to log back?
Why don’t you wait for ssh to respond if you need it to log back?
That's what the script is doing, waiting until ssh is available so he can login as soon as it's back responding.
I wrote this years ago but I've since then realized I could probably fill the same purpose with autossh.