Wednesday 28 August 2019

Can't SSH into digital ocean droplet

I'm new to this and just exploring but I'm having trouble. Here were my steps:​ssh -i ~/.ssh/my_key root@$SERVER_IP apt-get update adduser $USERNAME usermod -aG sudo $USERNAME su $USERNAME $ exit $ exit from my ssh directory ssh USERNAME@$SERVER_IP response isroot@SERVER_IP: Permission denied (publickey) I'm using a mac on Mojave and my server is using ubuntu 16.4. I've seen online that I should have a config file in my ~/.ssh/ directory but I do not.

Submitted August 28, 2019 at 11:51PM by dj1041

No comments:

Post a Comment