- Create your local ssh key using
ssh-keygen
- Copy
~/.ssh/id_rsa.pub
to digital oceanmy profile > security
- Create droplet with added ssh key
- Droplet dashboard > Access > Reset root password
- Email will come with root password
- Droplet dashboard; on right top there is "Console" to server
- Enter the root password you copied from e-mail
- Create a new password
- Local terminal;
ssh-copy-id -i id_rsa.pub YOUR_SERVER_IP
createsknown hosts
file under .ssh/ - If ssh key correct you can continue, if not;
ssh-keygen -R YOUR_SERVER_IP
puts correct ssh (the one you put in digital ocean profile secutiry) into your known_hosts file- Now you can login with
ssh root@YOUR_SERVER_IP
Created
February 27, 2021 06:09
-
-
Save yalin/0e9d62e423e351cb8d01aac25cec19e7 to your computer and use it in GitHub Desktop.
ssh after digital ocean droplet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment