Which tutorial did you follow?
username as the username in this example.
1). Create the users
home directory and the
.ssh directory where we'll store the users' key.
mkdir -p /home/username/.ssh
2). Add the user and set their home directory to the one we just created.
useradd -d /home/username username
3). Add the user to the
usermod -aG sudo username
4). Create our
5). Setup proper permissions on the
authorized_keys file, and home directory.
chmod 700 /home/username/.ssh
chmod 644 /home/username/.ssh/authorized_keys
chown -R username:username /home/username
6). Now you need to paste in your public key to the
authorized_keys file located here:
At this point, you should be able to login via SSH if everything is configured correctly.