I accidentally locked myself out from too many login attempts while trying to set up 2FA, had to console in and manually unban the only IP I had allowed to SSH in…

# get list of jails
fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'
 
# unban
fail2ban-client set [jail-name] unbanip [ip]