Create users & configure SSH on Debian

12th of August, 2017 in guide

Quick guide to create new users on Debian and to create and configure SSH keys for remote access.

  1. Create new user
  2. Add user to group
  3. Create SSH key on Windows
  4. Configure unix account with the private SSH key

Create new user

1
adduser <USER_NAME>

Fill in the user data.

1
2
3
4
5
6
7
8
9
10
11
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for <USER_NAME>
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n]

Add user to group

1
adduser <USER_NAME> <GROUP_NAME>

Create SSH key on Windows

Configure unix account with the private SSH key