I'm playing around with ssh-with-rsa-key authorization instead of password authorization and because I'm not really clever I've locked password authorization for root(passwd -l root
) on remote server.
Also I've deleted my rsa key from local computer and removed authorized_keys
from server(yes, I'm stupid) so now there is no way for me to log in as root on server.
As I understood now I have to run passwd -u root
to enable password authorization again on server. But I can not log in so I can not run this command.
Please advise if there way to fix things or I just have to go and shot myself?