A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
Changed your mind?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Root Password Not Working Unable to Log into VPS to give user root right
Posted September 4, 201324.2k views
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 :: 184.108.40.206]
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 220.127.116.11
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 http://stackoverflow.com/questions/18623440/user-is-not-in-the-sudoers-file-this-incident-will-be-reported-cap-deploysetu/18625148?noredirect=1#18625148
and suspects that the visudo section on the tutorial is incorrect?
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."
Then ssh to root@ip with the new password.
And don't forget to change it right away, as passwords sent via email cannot be considered to be secure.
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?)
"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"
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