Root Password Not Working Unable to Log into VPS to give user root right

  • Posted September 4, 2013

I am going through this tutorial

I keep on getting “permission denied” when I try to ssh into my root ip address.

I am as far in the tutorial to cap deploy:setup

when I do this

I am getting this

judy is not in the sudoers file. This incident will be reported. ** [out ::] command finished in 3716ms failed: “sh -c ‘sudo -p ‘\’‘sudo password: ‘\’’ ln -nfs /home/judy/apps/lintong/current/config/nginx.conf /etc/nginx/sites-enabled/lintong’” on

I need to ssh into my root vps inorder to give my user ‘judy’ sudo right so I can deploy… I am using the password emailed to me but keep on getting ‘permission denied’.

how do I recover this password to make sure its the same password?

I asked this question on stackoverflow

and suspects that the visudo section on the tutorial is incorrect?


It was the same with me . That’s why you pulled root access. try using The Following command , subistitua the " root @ " For Their user ’ your_username @ " : ssh your_username@IP

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

This comment has been deleted

“I needed to add the root user to the AllowUsers line along with the others to be able to ssh into the server as root” <br>I just went through the same process. The root password was accepted using the droplet access panel but not using putty. Was working ok yesterday but not today but at least able to use root again

I needed to add the root user to the AllowUsers line along with the others to be able to ssh into the server as root. Dont know if this is the right way, but it works.

@Kamal, <br> <br>If @judy.ngai1228 followed the tutorial referenced in the OP, then, yes, root access is disabled. <br> <br>@judy.ngai1228, when you edited <code>/etc/ssh/sshd_config</code>, did you execute <code>visudo</code> and add <code>judy ALL=(ALL:ALL) ALL</code> under the <code># User privilege specification</code>? <br> <br>Also, make sure that you added <code>AllowUsers judy</code> to the bottom of <code>/etc/ssh/sshd_config</code>.

Did you disable root access or edit /etc/ssh/sshd_config?

I got a new password but I still can’t access my vps with root@ipaddress it keeps on saying Permission denied (publickey,password). any ideas on how I can troubleshoot this ?

You will not lose any work if you power off your droplet.

Hi I do see the reset root password option, but since its says it will shut down my droplet and then send me a new one, will I lose my work on my vps? (all the ruby/rails/git/dependencies/nodejs/nginx installations?)

Go to the control panel of your droplet and select “Access -> Reset Root Password”. As the page says “This will shut down your droplet and a new root password will be set and emailed to you.” <br>Then ssh to root@ip with the new password. <br> <br>And don’t forget to change it right away, as passwords sent via email cannot be considered to be secure. <br> <br>Hoe this helps!

please note that I can ssh into my judy@ip address no problem with password created as given per the instructions on the tutorial