New update Flag - port number -p but I cannot log in root, received (publickey, permission denied)
I subscribe to vps in the digital ocean.
This tutorial is currently undergoing https://coderwall.com/p/yz8cha , and this railscast http://railscasts.com/episodes/335-deploying-to-a-vps
I made a new user inside vps, but this user does not have sudo priveledge
when I do the deployment closure: setting according to the manual I get this
judy is not in the sudoers file. This incident will be reported. failed: "sh -c 'sudo -p '\\''sudo password: '\\'' ln -nfs /home/judy/apps/lintong/current/config/nginx.conf /etc/nginx/sites-enabled/lintong'" on 192.241.241.204
I changed the port to 888 according to the manual, and now I can not ssh to the server
when i do ssh root@ipaddress or ssh judy@ipaddress
trying to connect to port 22
The first question is how can I pass to the field when I ssh in vps with the option of port 888?
Second question How can I give the rights of a judge sudo? according to the coderwall tutorial i have to do this
visudo
then
add username ALL=(ALL:ALL) ALL , but I think I did it before and it didn't work?
source share