I just set up a Raspberry PI 4 Model B in the laboratory to automatically connect to the lab’s router. I found that each random minutes the SSH is hangs and not responding.
IPQoS cs0 cs0 line to the end of
/etc/ssh/sshd_config file will fix the issue. 🙂