motdotla / digitalocean

The easiest and most complete rubygem for DigitalOcean.
http://rubygems.org/gems/digitalocean
MIT License
153 stars 42 forks source link

Creation of ssh key #27

Closed snyff closed 10 years ago

snyff commented 10 years ago

Hi Guys,

When the method SshKey.create is used, the ssh public key does not get encoded before being sent to the server. This should probably get (at least) documented or an extra-encoding could be added since it breaks if the ssh key contains a '+' sign (since it doesn't get encoded as '%2b' and the server thinks it's an encoded space).

Let me know what you think

rosenfeld commented 10 years ago

This happened to me as well. :+1: