I recently made some new users in my digitalocean droplet, and I would like to access them directly with the command
ssh username@ip. However, I get denied with
username@ip: Permission denied (publickey). For clarification, the machine has the correct private-key and can access the droplet with
I did the following to create the new user
root@school:~# adduser username Adding user `username' ... Adding new group `username' (1001) ... Adding new user `username' (1001) with group `username' ... Creating home directory `/home/username' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
After these steps, what is further to do to be able to access the droplet with
ssh username@ip ?