Community

Closed Cant access server with my SSH keys suddenly, but can log into CyberPanel still

Ni
Nick #1

All of a sudden I cannot access my server. I had turned off RootLogin and PasswordAuthentication and was only using SSH Keys to login. But they aren’t working now, for seemingly no reason at all.

But I can log in to CyberPanel still. If I add new ssh keys, it doesnt help either. My websites are still accessible too.

What could this be? Any suggestions?

Dr
Dreamer #2

Try access console from hosting account and change keys or enable password login

Ni
Nick #3

Thanks! Yeah, I’m trying now. They have a VNC console but it isn’t working either… I dont think I can enable password login without having access though.

Worst case, I have a server backup from a few days ago that I can try restoring…

Ni
Nick #4

I’ve gained access again. Turns out you can’t paste into the host’s VNC console - I had to type the pw manually.

I’ve reset each system user’s password manually, cleared out all the /.ssh/authorized keys files. I’ll try adding keys back in now and see what happens.

Very bizarre… I really have no idea what happened/changed…

Ni
Nick #5

Seems to be working again. Really strange. Thanks for the help @Dreamer!

This topic is closed to new replies.