Newest Update
The flag is -p portnumber, but I can't get into root. I got (publickey, permission denied)
.
I sign up for a VPS on DigitalOcean.
I am currently going through the tutorial Deploying a Ruby on Rails application using Nginx, Unicorn, PostgreSQL, and Capistrano to DigitalOcean and the railscast #335 Deploying to a VPS.
I made a new user inside the VPS, but this user doesn't have the sudo privilege.
When I do cap deploy:setup according to the guide, I am getting 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 guide and now I can't ssh into the server.
When I do ssh root@ipaddress
or ssh judy@ipaddress
, it’s trying to connect to port 22.
First question: How do I pass in a field to when I ssh into the VPS with a port option of 888?
Second question: How do I give judy sudo rights? According to coderwall's tutorial, I should do this:
visudo
and then add username ALL=(ALL:ALL) ALL
, but I think I did it before, and it didn't work.