petems / tugboat

A command line tool for interacting with your DigitalOcean droplets.
MIT License
1.45k stars 89 forks source link

--default option for add-key #135

Closed brandondrew closed 9 years ago

brandondrew commented 9 years ago

It would be useful to have a --default option for add-key. This would cause the default key specified in ~/.tugboat to be used, without prompting the user to choose on (or type one in) at the shell.

brandondrew commented 9 years ago

I may be misunderstanding what add-key does... I thought (since my rethink-2 was not allowing me to ssh to it) that this was adding a key to a specific VM, but if it is in fact adding the key to the DO account, then my request may not make sense.

counterbeing commented 9 years ago

I'm just a guy, but I think you misread the docs. I believe the add-key option is for actually adding a new key to DigitialOcean. If you want to have a default key enabled try using tugboat keys which should give you an ID representing your key on digital ocean. You can then use that ID in your ~/.tugboat config and it will be added as a default key to all new hosts.

petems commented 9 years ago

Clarified in #157