Live data from Hacker News

SSH Keys on GitHub

github.com

41–48 of 48 posts

Re: SSH Keys on GitHub

#44
post #2

Does Github have a responsibility to help people out with this kind of thing? What do you all think?

I think it would be very useful for repositories to have a default server-side push hook that scans for the most common mistakes, rejecting the push while printing an URL to a page explaining what's going on and with a checkbox for opting out on the check for future pushes to that repo.

Re: SSH Keys on GitHub

#45

Looks like they've blocked it now. Searching via Google still works though: https://www.google.com/search?q=site%3Agithub.com+inurl%3Aid...

id_rsa is being blocked right now, but id_dsa and id_ecdsa still work.

adding wildcards works as well, eg: id_rsa?

Re: SSH Keys on GitHub

#47
post #36

Hmmph. I just found a bunch of free AWS keys by searching for amazon.yml, too. What is the best way to share things like API keys among a team of developers, anyway? I'm surprised this hasn't been solved already (perhaps it has and I just don't know about it). I know you can share passwords with tools like LastPass and 1Password, and I suppose you could use those for API keys as well? It'd be nice if you could, e.g.,…

I'm not sure if there are other ways, better or not... but blackbox[1] can be used to store secrets. And it might be possible to achieve some success with git filters[2], at least to avoid pushing secrets into the repository. Still... just my two cents, I'm not exactly a pro-user of those two features [1]( https://github.com/StackExchange/blackbox ) [2]( https://stackoverflow.com/questions/6557467/can-git-ignore-a...…

If you decide to take the git filters approach, git-crypt[0] is a good choice.

[0] https://github.com/AGWA/git-crypt

Re: SSH Keys on GitHub

#48

And if you want to get the public key also: .keys" rel="nofollow">https://github.com/ .keys ex.: https://github.com/avinassh.keys

No need. You can recover the public key from a private key using ssh-keygen's 'y' option:

-y This option will read a private OpenSSH format file and print an OpenSSH public key to stdout.

For example:

ssh-keygen -y -f id_rsa > id_rsa.pub

Post reply on HN