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.

GitHub and Gitlab exposes all user's public SSH keys (2019)

1 pointsby weasturabout 3 years ago
Pretty unsafe, I think. And you can&#x27;t turn it off. https:&#x2F;&#x2F;rushter.com&#x2F;blog&#x2F;public-ssh-keys&#x2F;<p>Links to APIs:<p>https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;rest&#x2F;reference&#x2F;users#list-public-keys-for-a-user<p>https:&#x2F;&#x2F;docs.gitlab.com&#x2F;ee&#x2F;api&#x2F;users.html#list-ssh-keys-for-user

3 comments

dossyabout 3 years ago
By definition, the public key is _public_, there&#x27;s no real risk in publishing them.
version_fiveabout 3 years ago
The article (2 years old) explains you could get someone&#x27;s public keys from github and then compare them with other public keys (they mention on ssh servers) to see if a person is using the same key elsewhere.<p>The argument boils down to the fact that ssh will also give you a list of valid public keys.<p>It doesn&#x27;t seem very critical to me, and anyone who is worried could just use a different key for github which is good practice anyway imo
miohtamaabout 3 years ago
Public key, by definition, is public. Exposing something that’s public can do very little harm.<p>Here is more discussion:<p><a href="https:&#x2F;&#x2F;security.stackexchange.com&#x2F;questions&#x2F;150540&#x2F;is-it-completely-safe-to-publish-an-ssh-public-key" rel="nofollow">https:&#x2F;&#x2F;security.stackexchange.com&#x2F;questions&#x2F;150540&#x2F;is-it-co...</a>