Closed BrazilForever11 closed 3 years ago
Your ssh key needs to be available on your local machine too. You can check this with ssh::ssh_key_info()
. Validate that one of the public keys can be found in lapply(analogsea::keys(), '[[', "public_key")
.
@meztez Thank you, it worked!
I have installed via github, have ran the code ssh::ssh_key_info()
and lapply(analogsea::keys(), '[[', "public_key")
. Both gave proper response.
Still after running, I get the following error.
`
id = plumberDeploy::do_provision( 'ubuntu-sakhu', example = FALSE ) Error: Authentication with ssh server failed `
@boral Could you create a new issue with a reprex?
Beyond making sure the keys are available both on the local machine and the DO account, it is quite difficult to diagnose.
I'm running into the same issue as @boral and I'm not sure how one would provide a reprex in this case. At first I was running into an issue because my local ssh key and the DigitalOcean one weren't the same:
Now I made sure my R session and the DigitalOcean one match, but I'm still getting the Error: Authentication with ssh server failed
:
Any thoughts around what I may be doing wrong here? I think the command is working correctly but running into a problem installing apt-transport-https
because the DigitalOcean mirror for the download is just not working. See this issue on the topic: https://www.digitalocean.com/community/questions/digitalocean-mirrors-failing
It seems like the required fix would probably be to replace “mirrors.digitalocean.com” with “archive.ubuntu.com”, but I have no clue how to make the change and use the plumberDeploy package with the change applied.
This another error not related to ssh key and discussed in https://github.com/meztez/plumberDeploy/issues/31.
You can use the development version to get around this. You did nothing wrong, it has something to do with DO ubuntu image.
Apologies, I ended up on this thread because the error referenced matched what I got and googled and I missed that one. Works great on the development version, thank you very much! This is great, thank you for making & maintaining this package
All thanks should go to @trestletech and @muschellij2. I'm just making sure nothing serious breaks.
Hello,
I installed:
created DigitalOcean account and added my SSH public key. Now I run:
and end up with
I can see that droplet is created and can connect to it using Windows Bash.
How do I do SSH authentication from R session? Where do I provide my private key?