What I have done
- created a new digital ocean droplet and
- Created SSH key based on this guide and during the creation of the droplet I have copied it in
- I have run the following codes from here
ssh root@your_server_ip
adduser sammy
usermod -aG sudo sammy
- Than I have tried to log in as "sammy"
ssh sammy@your_server_ip
ERROR
Permission denied (publickey).
- If I log in with root access than there is no problem I get in like before
Fixes I have tried
- cleaned put the shh key folder and only have this key there
- I haven't found any answer but my problem is kind of like this
- this is not that similar to this.
ssh -vvv root@my_ip
from here it pushes out like lines of debug what should I look for?- I have tried to read sshd server logs on ubuntu this most common messages
Disconnected from invalid user somefirstname43
Disconnected from invalid user someotherfirstname334
Disconnected from authenticating user root
Received disconnect from ID port ...
Accepted publickey for root from ID
Did not receive identification string from ID port ....
Connection closed by authenticating user sammy ID port portnumber <<----