Question

Can't login to drop via ssh to root user after root password reset

Posted August 12, 2018 2.4k views
System ToolsUbuntu 16.04

Hi. using droplet :

I have an issue with the root password of our droplets. still able to login with ssh keys to forge user.

But when i try to switch to root user with new password that i got in email, it still says incorrect password

so to droplet really can’t login as the root, only an ordinary user. we can’t do any changes that involves root permission.

Can you please advise on how we can retrieve our root password.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hello friend!

Great question. I believe Laravel Forge disables root password login when their system provisions a droplet. You may try “su” from the forge user. If their provisioning configuration allows, that would elevate you to root (it might ask for a password for the forge user, can be reset with command “passwd”). If that does not work, your only recourse is to use our web console to log in with root password and re-enable password login for the root account by editing /etc/ssh/sshd_config.

Kind Regards,
Jarland

Please give more details of what operating system you set up.

Also if your user has sudo permission, you can run the following command:
sudo su -

Wayne Sallee
Wayne@WayneSallee.com

Submit an Answer