From charlesreid1

Revision as of 18:41, 26 January 2015 by Admin (talk | contribs)

Procedure

Create droplet (logging in as root)

Add non-root user account

Give non-root user account sudo abilities

  • add to root group:
    usermod -G root charles
  • make sudoer:
    sudo adduser charles sudo

Test sudo abilities

  • sudo -; whoami

Disable non-root login

  • sudo vim /etc/ssh/sshd_config
  • change
    PermitRootLogin yes
    to
    PermitRootLogin no