Lurker News

Comments (245) 68 threads

Earlier comments
duggan1 reply#
If this surprises people, it's definitely doing some good.

Nicely presented, Filippo!

roozbeh18#
surprise to me. added

IdentitiesOnly yes
to my config file.

yesco3 replies#
Forgive me ignorance here but what steps should I take to avoid someone from getting my public key off github and then using it to screw with my repos? Was there a major step I missed here when I made these keys?
kevinastone2 replies#
It's a public key for a reason. You need to the private key to authenticate, so you're safe having everyone know your public key.
nly2 replies#
It's fairly pointless of github to publish your public key though. Nobody can trust that it's actually yours.
chrisfosterelli#
If you trust your connection to Github and trust that the person in control of the account is the person the account represents, then why not trust that key?
the84721 reply#
> It's fairly pointless

If it enables security research it's already a win in my eyes.
Might expose classes of weak keys in the future for example.

Continue this thread — 1 reply

RaleyField1 reply#
> It's a public key for a reason

It's public key because it's named such in the context of public key cryptography. But not all public keys should be available to public.
Ideally by default ssh client should use a different key pair for each server('s public key) it connects to. Some people want to hide their identity, for example Tox people chose to be anonymous, what SSH does goes against expectations so it has the ability to betray their choice.

eru#
Not only a different key-pair per server, but also per session.
karlshea#
GitHub doesn't even have your private key.
yesco#
Oh yea, duh. Thanks for clearing that up for me, I get the two mixed up a lot. (which is bad)
shmerl#
To make it easier. Your public key is something others would place on their servers to grant you access, and you'll need to have your private key to authenticate.
arturhoo4 replies#
Nice idea, but don't run the command if you have

    Host *
      ForwardAgent yes
On your ~/.ssh/config
chmike2 replies#
What is the effect of ForwardAgent ?
rmetzler1 reply#
Forwarding your keys basically. It's like giving someone you don't know a handshake AND all your keys.
lcswi3 replies#
public keys I hope?!

Continue this thread — 3 replies

arturhoo#
The host you're connecting to could be able to, force write/destroy your public repos or clone your (and your employer's) private repos given that he knows their paths, eg: github/github. I'd assume that a few companies have a */secrets repo of some sort.
clinta#
Don't use agent forwarding to any host you don't have exclusive root access to and are 100% sure isn't compromised. Anyone else who is root on a box you SSH to with agent forwarding can authenticate to other servers using your private key while you are connected.
jrockway1 reply#
Is this a problem if my private key is on a smartcard and I have to press a button on the card to sign something?
eru#
Slightly less so. But they can still trick you into signing something different than what you'd expect.
scintill76#
Ooh goodie, we get to re-open the argument about whether it was bad of GitHub to publish the public keys![1] Pick your talking points: "They're called public for a reason.", "This could enable identity tracking.", "If your security model prefers public keys to be kept secret, it's absurd -- security by obscurity.", "This could enable factoring weak keys.", "This is good for security research.", "It's wrong to reveal metadata without consent, even if it doesn't break the crypto."

You could build in another PoC by doing the trick where you hide a command inside the copy-paste version of the ssh command line you gave.[2]
[1] https://news.ycombinator.com/item?id=9645703 [2] https://thejh.net/misc/website-terminal-copy-paste

Load more comments