Score:0

DigitalOcean Droplet ssh to use a named key

bd flag

It's been a while since I've done this and configured ssh keys.

I generated an ssh key with a different file name than id_rsa

I have a DigitalOcean Droplet where I placed a named ssh key pair on creation.

Then I created a ~/.ssh/config on my local machine where I configured my Host to use the proper identity file.

I made my hostname the IP of the droplet. I believe I can do that.

~/.ssh/config:

Host multipress
 Hostname XX.XXX.XXX.XXX
 User root
 IdentityFile  ~/.ssh/multipress

But when I try to connect it fails:

% ssh [email protected]                                                                                                                                                                                                                             
   [email protected]: Permission denied (publickey).
Ravi Kumar CH avatar
br flag
You only need to add the public key in the digital ocean website interface and not the key pair. Please post the output of ssh -v [email protected] to check the actual error message
Kyle Calica-St avatar
bd flag
@RaviKumarCH that's a helpful command. I did solve it. My host file on local needs IdentityFile!
Score:0
bd flag

I was able to make this work. I think the droplet just needed some time.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.