the fail2ban-client has an interaction mode which will make it easy to unban an IP without many complications. To access interactive mode use:
$ fail2ban-client -i
once in interactive mode type ssh
, or in some cases sshd
(this was the case in my installation)