TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Obtain a GitHub user's public keys

57 点作者 kentwistle将近 11 年前

8 条评论

robinricard将近 11 年前
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 未加载
kentwistle将近 11 年前
Found out about this today, you can prepend any GitHub username with .keys to fetch their public keys.
评论 #7898460 未加载
评论 #7899041 未加载
intull将近 11 年前
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 未加载
mixologic将近 11 年前
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 未加载
rlpb将近 11 年前
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_将近 11 年前
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.
lloeki将近 11 年前
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_thor将近 11 年前
I am glad my email doesn&#x27;t show up in there.
评论 #7899109 未加载