pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
155 stars 24 forks source link

"Error: Please install ssh" from ubuntu_create_user #209

Closed aetiologicCanada closed 2 years ago

aetiologicCanada commented 2 years ago

This code below works, but ubuntu_create_user() fails with a "please install ssh" error.

Am I missing something? Should I adding arguments to droplet_create to generate ssh?

Thanks,

R

``

library(tidyverse) library(analogsea)

analogsea::account()

do_pat="**" Sys.setenv("DO_PAT" = do_pat) droplets()

droplet_create(

name = "testing",

ssh_keys = "/home/rob/.ssh/id_rsa",user_data = "/home/rob/test.txt"

) -> details

droplet_create("rstudio-20-04", ssh_keys = '~/.ssh/id_rsa.pub')

ubuntu_create_user("rstudio-20-04", "rob", "rob_password", keyfile = "~/.ssh/id_rsa")

 

pachadotdev commented 2 years ago

sorry for the delay for future reference: you need install.packages("ssh")