cloudyr/aws.ec2

ssh into created instance

csgillespie opened this issue · 2 comments

Is it possible to ssh into the instance created in the README file?

i <- run_instances(image = image, 
                   type = "t2.micro", # <- you might want to change this
                   subnet = s[[1]], 
                   sgroup = g[[1]])

No, I suppose not. You need to specify a keypair argument with reference to a named keypair. See ? create_keypair.

As of d517597, the README now contains a detailed example of this, which also uses the ssh package.