Govind Jaiswal
Govind Jaiswal

Reputation: 61

Add ssh key in existing droplet

I am a new to use a digital ocean.... Unfortunately I am facing a problem when I have a current (existing) droplet in which I need to add my ssh key? (DigitalOcean) Can i update a droplet? | DigitalOcean

Upvotes: 3

Views: 775

Answers (1)

Rams
Rams

Reputation: 2179

Edit and Add your new SSH key in authorized_keys file of .ssh directory, which is located in user directory.

then run following command

sudo service ssh restart

Then try to connect using ssh username@your_droplet_ipaddress

I hope it works

Upvotes: 1

Related Questions