From Dev.to
"Connection refused" on SSH right after adding your key: fail2ban did it
You add your public key to the server, try to log in, and get Permission denied (publickey). You change something small, try again, and again. Then the error changes to ssh: connect to host ... port 2...
