I've been running this script for a few days:
while [ true ]; do ssh USER@SERVER echo -n . || date +"%s"; done
Obviously, my terminal is filled with dots, but sometimes (quite rarely) I get this
.......................................................................
.......................................................................
.......................................................................
.......................................................................
.......................................................................
..............ssh: connect to host SERVER port 22: Connection refused
1323454879
ssh: connect to host SERVER port 22: Connection refused
1323454879
ssh: connect to host SERVER port 22: Connection refused
[snip]
1323454879
ssh: connect to host SERVER port 22: Connection refused
1323454879
ssh: connect to host SERVER port 22: Connection refused
.......................................................................
.......................................................................
.......................................................................
.......................................................................
.......................................................................
I tried this with different server providers, source servers, target servers, time of day, geographic locations. Sooner or later that error comes up for a brief second or two.
Is this to be expected or do I have an issue?