TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Obtain a GitHub user's public keys

57 pointsby kentwistlealmost 11 years ago

8 comments

robinricardalmost 11 years ago
I use it to set user access to my company's servers with ansible automatically. I just have to set a list of github usernames and it generates a list of users with their ssh key access setup !
评论 #7898597 未加载
kentwistlealmost 11 years ago
Found out about this today, you can prepend any GitHub username with .keys to fetch their public keys.
评论 #7898460 未加载
评论 #7899041 未加载
intullalmost 11 years ago
Is this supposed to be okay? I mean, even though they are public keys, its not like I really want them to be _that_ public!
评论 #7898956 未加载
评论 #7903268 未加载
mixologicalmost 11 years ago
Seems like this would be a good way to frame somebody else. Hack into a server, do some damage&#x2F;steal files, and drop <i>somebody elses</i> public key on the server.<p>&quot;But I didnt do it!&quot; - Then why was your key on the server?
评论 #7899286 未加载
rlpbalmost 11 years ago
Something similar has been available on Launchpad for years. There&#x27;s a tool called &quot;ssh-import-id&quot;. If I want to give you access to an Ubuntu server, I might type &quot;ssh-import-id kentwistle&quot;. This would fetch public keys that the kentwistle user on Launchpad has published over HTTPS and then add them to ~&#x2F;.ssh&#x2F;authorized_keys.<p>I don&#x27;t think there&#x27;s any reason that ssh-import-id needs to be Launchpad-specific.
akerl_almost 11 years ago
It&#x27;s worth noting that this shows only &quot;verified&quot; keys, which are keys that have been added to the account and used at least once.
lloekialmost 11 years ago
Github leverages such content-type negotiation for other resources too: add .diff or .patch to commits or pull requests. There&#x27;s a way to get git am compatible data too.
drunken_thoralmost 11 years ago
I am glad my email doesn&#x27;t show up in there.
评论 #7899109 未加载