Can't ssh into yunohost after installing pf public ssh-key failed

I tried to copy my public ssh-key to my yunohost server, but somehow it stalled and then I stopped everything by hitting ctrl+x and disconnected. If I try to ssh into yunohost now, I get the error message “port22 Connection refused”.

I think I made the mistake to copy try to install the ssh-hey not for the admin or root user but for one of the yh users.

Any idea what I can do?

Update: If I ssh from another computer it works. So I guess I have to delete the ssh public key? On my server or on my mac?