Is there any way to access SSH if I forget my password?

Asked 2 years ago, Updated 2 years ago, 153 views

I'm in a difficult situation because I lost my password. Among the methods, I heard that access is possible using pem, so I'm going to try it, is that right? Or is there a way to access it if I forget my password? Please give me an answer.

ssh terminal pem

2022-09-22 18:38

1 Answers

If you simply say ssh, you don't know which os it is, and it's important whether the lost account is root, and the root account is usually off, so it can't be processed remotely.

If I were to say it's Linux, access using pem, or key, requires generating a key while logged in, so it's not available in the situation of questioners who can't log in.

If it's a normal account, you can access the root account and change the password

However, if you lost the password of the root account, the story will be different.

At this time, it cannot be processed remotely, and when booting directly in front of the equipment, the grub script must be modified to run bash immediately.

In other words, you will run the shell of root privileges as soon as you boot, so you can change the password immediately.

You can proceed by referring to the link below.

https://dang-dang12.tistory.com/20


2022-09-22 18:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.