S
S
SpiritSound2016-04-28 13:36:20
SSH
SpiritSound, 2016-04-28 13:36:20

How to restore root access to ssh if ssh keys were disabled?

Hey!
A friend rented an Amazan ec2 server .
He had access to SSH through the key file .PPK and he, by the will of fate, set up the configuration file sshd_config. And it so happened that he disabled the use of keys altogether and restarted the sshd service.
Now he can't login to SSH. she asks for a password. (He tried to enter different passwords, even from his mail, but nothing helped)
What should he advise him to do now? Is it possible to set up or create a new root user on the server in the Amazon admin panel so that it regains its former heritage?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-04-28
@SpiritSound

You create a new instance, disconnect the disk on the old mount to the new one on the old disk in the sx config, allow the keys and then return the disk to the old server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question