That is not the only disturbing part. SSH private key by itself is not much of a threat, but bundled together with known_hosts is a recipe for disaster.
At least now someone can push to his GitHub account to remove it for him. :-)
Not if he has a passphrase, right?
Correct.
Re:A Whole New Code Search
by barkingcat on Wednesday January 23, 2013 @06:00PM
(#5105873)
Why would people put dotfiles like ssh keys up on public github?
This kind of thing is best suited for a private repo (github is still ok, just make it private) - cause it's most likely of no use to anyone but that single user.
I would not suggest that it's okay even for a private repo. Never let your private keys leave your machine or its dedicated, encrypted backup.
Although I would never do this myself, if the keys themselves are encrypted with a password and then uploaded, it's not nearly as bad.
In the case of ssh keys, you usually should use a different key per device/home directory and let your server accept all the keys.
And that was just the one on the first page of results I got.
Re:A Whole New Code Search
by jrochkind1 on Wednesday January 23, 2013 @05:47PM
(#5105812)
Nothing new about that, you didn't need github's improved search to do it.
https://www.google.com/search?q=site%3Agithub.com+inurl%3A.s...
Re:A Whole New Code Search
by cryowaffle on Wednesday January 23, 2013 @07:15PM
(#5106250)
Or Bitcoin RPC password!
https://github.com/search?q=path%3A.ssh%2Fid_rsa&type=Co...