I've basically locked myself out of my vps. There's nothing on it, so there's not too much worry, but I really want to know how to fix the problem.
I've locked myself out by disabling root access, and then overwriting id_rsa. I've learned my lesson, and will be naming all my key pairs from now on.
Anyway, whenever I attempt to logon via ssh
ssh username@xxx -p 2222
I get this:
debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey d Received disconnect from xxxxx: 2: Too many authentication failures for root
The problem is I no longer have a valid key, so my ssh agent offers each one in turn, until the server ignores me.
I can easily generate another key pair locally, but I'm confused as to what to do on the server side of things?
I have root access via a cloud console.