Hacker News new | comments | show | ask | jobs | submit login
GitHub exposes public ssh keys for its users (thechangelog.com)
20 points by adamstac on Feb 11, 2013 | hide | past | web | favorite | 6 comments

So, i'm a little confused. Whats the downside of this: curl -O https://github.com/<username>.keys

Does Github just want us to use the API Method? http://developer.github.com/v3/users/keys/#list-public-keys-...

But...but...the second way is so much more programatic!

ruby -e 'require "json"; require "open-uri"; JSON.parse(open("https://api.github.com/users/<username>/keys).read).each{|x|puts x["key"]}'

Maybe there's something about the .keys URL possibly going away or moving, while the API is pretty much guaranteed to be there for as long as that version of the API works.

Ah, now I see the light :) Thats a good point, sounds like Github is semi guaranteeing the API access but the url could get canned at any time.

Yea it wasn't like "Hey! Don't do that!", it seemed more like, "Iiii wouldn't suggest that."

I wasn't sure of that either. I'd prefer to curl it myself.

Well either way, cool way to retrieve keys.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact