pachadotdev / analogsea

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

ssh keys vs. passwords #26

Closed sckott closed 10 years ago

sckott commented 10 years ago

I think we should by default expect a user to use ssh keys. That seems ideal to me, but may be hard for beginners to make an ssh key locally. But then again perhaps only more advanced folks will use this? If using ssh keys, then just need to pass an ssh key id or fingerprint as droplets_new(ssh_keys='<ssh key id or fingerprint>'), whereas you can't just pass in a password to the droplets_new() function. But, the DO API allows you to change a password https://developers.digitalocean.com/v2/#password-reset-a-droplet, which we could then do programatically, or let a user do so separately.

hadley commented 10 years ago

Note that if you're using github, you must have a ssh key somewhere. Should be possible to find that, and if it doesn't exist, point people to the github advice

sckott commented 10 years ago

Right, good point @hadley - I'll build in that check for the user key

hadley commented 10 years ago

I think this is now dealt with through better defaults in droplet_new()