plumberDeploy won't provision or deploy

Hi,

I am trying to use plumberDeploy to push my API to a droplet on DigitalOcean. However, when using:

plumberDeploy::do_provision(name="ExampleName")

I get the following:

THIS ACTION COSTS YOU MONEY!
Provisioning a new server for which you will get a bill from DigitalOcean.
Using default ssh keys: PBS KEY
NB: This costs $0.00744 / hour until you droplet_delete() it
Waiting for create ...................
New server key: ac:4e:e6:######(more numbers here)######
Error: Authentication with ssh server failed

Then when i use the function:

do_deploy_api(123456789, "date", "/Users/Ken/Desktop", 8000, docs = TRUE)

I get this:

New server key: c4:70:02:######(more numbers here)######
Error: Authentication with ssh server failed

What am I doing wrong or what can I do to get this API uploaded today on digital ocean?

I can see that you set up an ssh key with digital ocean. Is that key available to analogsea on your local machine? Located in the .ssh folder?

Check that it is with

ssh::ssh_key_info()

Yes,

So I initially used these two commands:

analogsea::account()

analogsea::key_create

Before provisioning and deploying.

I just ran your suggested command:

ssh::ssh_key_info()

and it returns:

$key
[1] "/Users/Ken/.ssh/id_rsa"

$pubkey
[1] "ssh-rsa AAAAB#####(more characters here)#####"

This doesn't include the "New server key" that's returned with the error message. Is that the problem?

So running the following command

 analogsea::keys()

Produces:

$`PBS KEY`
<key> KEY (123456789)
  Fingerprint: f3:69####(more characters)####

Which is the fingerprint of the public key content shared above. But I am still recieving the same error both on provisioning and deployment. :frowning:

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").