Hello. Help please. I accidentally enabled 2FA authorization, I thought it works via email. There is no token and recovery code. Now I can’t log in… Can you suggest a list of actions for recovery?
Hi @bodev
As root (replace YourUser
with the actual user).
v-delete-user-2fa YourUser
or
sudo /usr/local/hestia/bin/v-delete-user-2fa YourUser
But where do I enter this command? Sorry for such stupid questions, but I’m just starting out in administration…
You must log in to your server via SSH, just like you did when you installed Hestia.
Login via SSH, open the terminal / command prompt
paste / type the above.
C:\Users\User/.ssh/config: line 1: Bad configuration option: \212\256\254\240\255\244\240
C:\Users\User/.ssh/config: line 3: Bad configuration option: \222\240\252\256\251
C:\Users\User/.ssh/config: terminating, 2 bad configuration options
Your local config file is wrong probally just delete it and try connecting again
Removed the config file from the folder. But in this case, after entering the command and pressing Enter, nothing happens
Because seems it is using the default port 22
but you changed it to 9022
.
ssh -p 9022 [email protected]
Oh my god, 3 things helped me:
- In Putty I specified the port - 9022
- When entering the password I found out that it is hidden, but you need to enter it and press Enter.
- This is the command that worked - sudo /usr/local/hestia/bin/v-delete-user-2fa YourUser
I say thank you to @sahsanu for saving my life!