Show HN: My SSH server knows who you are
21–30 of 257 posts
Re: Show HN: My SSH server knows who you are
#22Re: Show HN: My SSH server knows who you are
#23The connection gets closed immediately for me, what is it supposed to do?
For those who couldn't make it work: +---------------------------------------------------------------------+ | | | _o/ Hello! | | | | | | Did you know that ssh sends all your public keys to any server | | it tries to authenticate to? You can see yours echoed below. | | | | We tried to use that to find your GitHub username, but we | | couldn't :( maybe you don't even have GitHub ssh keys, do you? | | | | By the way, d…
+---------------------------------------------------------------------+
| |
| _o/ Hello Evan Tschuy!
| |
| |
| Did you know that ssh sends all your public keys to any server |
| it tries to authenticate to? |
| |
| That's how we know you are @tschuy on GitHub!
| |
| Ah, maybe what you did't know is that GitHub publishes all users' |
| ssh public keys and Ben (benjojo.co.uk) grabbed them all. |
| |
| That's pretty handy at times :) for example your key is at |
| https://github.com/tschuy.keys
| |
| |
| P.S. This whole thingy is Open Source! (And written in Go!) |
| https://github.com/FiloSottile/whosthere |
| |
| -- @FiloSottile (https://twitter.com/FiloSottile) |
| |
+---------------------------------------------------------------------+
Connection to whoami.filippo.io closed.Re: Show HN: My SSH server knows who you are
#24Forgive 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?
No, in order to mess with your repo, an attacker would need your private key. Github only publishes public keys. For more information you can check out https://en.wikipedia.org/wiki/Public-key_cryptography
Re: Show HN: My SSH server knows who you are
#25Good thing I use HTTP to push to Github (or not?)
Re: Show HN: My SSH server knows who you are
#26So if my assumption is correct (some quick googling for images of the ssh key exchange suggests it is), then the reason it "works" in this case is because people intentionally say "yes" when presented with the fingerprint, just to see what would happen. If you were ssh-ing to a server that you've used before, there is little to worry about because the ssh client first authenticates the server, and the server presumably needs to know who you are anyway.
Re: Show HN: My SSH server knows who you are
#27Nicely presented, Filippo!
Re: Show HN: My SSH server knows who you are
#28I wonder if this means we should be rotating keys periodically? I know most companies require users to rotate their password every X days.
Also, does GitHub have a setting to disable public key publishing?
Re: Show HN: My SSH server knows who you are
#29I use putty, this failed.
Re: Show HN: My SSH server knows who you are
#30If you want to disable this sort of behaviour you can disable SSH from sending keys automatically, and then tell SSH which identity files need to be sent to each host.
In your .ssh/config, something like:
# Ignore SSH keys unless specified in Host subsection
IdentitiesOnly yes
# Send your public key to github only
Host github.com
IdentityFile ~/.ssh/id_rsa
This is also handy if you're security conscious and like to use a different private/public key pair for each host you have an account with!