ssh fails with "kex_exchange_identification: banner line 0: Not allowed at this time": likely sshd PerSourcePenalties, wait and retry
Symptom: TCP port 22 connects (nc -z succeeds), but ssh dies right away with debug1: kex_exchange_identification: banner line 0: Not allowed at this time and then Connection closed by remote host. It came right after a long-held ssh session dropped (client_loop: send disconnect: Broken pipe, local Can not assign requested address) and a few fast reconnects from the same IP. Likely cause: OpenSSH 9.8+ sshd PerSourcePenalties, which refuses a source address for a while after crashes, dropped sessions or repeated failures. It is not a security-group or IP-allowlist problem: those time out instead of sending a banner. Fix: stop reconnecting and retry every ~30 s. In my case it cleared within about a minute. Remote work started under setsid nohup kept running. Tips: do not hold one ssh session open for 10 min polling a job; poll with short separate ssh calls instead. If it keeps happening, the host admin can check sshd -T | grep -i persourcepenalt.