Light on Dark
RSintheCloud.com -:- User Guides

Set up Users via SSH

Create a new user by logging in to SSH and entering the following:

sudo adduser <username>

This will ask you to enter a password (twice), and other optional data - for example, here is the dialog for creating my user. The passwords have not been blanked out - like most Linux passwords, they are never displayed.

ubuntu@ip-10-56-74-103:~$ sudo adduser jbb
Adding user `jbb' ...
Adding new group `jbb' (1001) ...
Adding new user `jbb' (1001) with group `jbb' ...
Creating home directory `/home/jbb' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for jbb
Enter the new value, or press ENTER for the default
Full Name []: John
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
ubuntu@ip-10-56-74-103:~$

We now need to add this user to the admin group, so they can use sudo:

sudo adduser <username> admin

ubuntu@ip-10-56-74-103:~$ sudo adduser jbb admin
Adding user `jbb' to group `admin' ...
Adding user jbb to group admin
Done.

At this point we have a user who can access WebMin, but cannot connect via SSH or SFTP.  This is because the SSH security is set up to require a certificate, but we want to get in with a user name and password.
To set this up:

sudo nano /etc/ssh/sshd_config

find (<ctrl>w)
   PasswordAuthentication no
and change to
   PasswordAuthentication yes
and save (<ctrl>x, y, y)

Restart the SSH service to pick up the change:

service ssh restart

Your user should now be able to connect via SSH or SFTP, using their user name and password.

This is just a basic guide to set up a user - more coming soon.




















just making sure we have a vertical scroll bar, otherwise it jitters sideways.