How to add users to a running instance

These steps will let the user that you create ssh to a running instance using a password you set.  The user can reset the password once they login and/or add their ssh keys.

Step-by-step guide

All steps to be run as root or using sudo. <USERNAME> should be replaced with an actual username

  1. Sudo or otherwise become root: sudo su -
  2. Create the user: adduser <username>
  3. Assign a temporary password: passwd <username> 
  4. Add the user to group "users" : usermod -a -G users <username>
    If don't do this step, you'll get a "connection denied" message when you try to ssh in.