Lurker News

Comments (245) 68 threads

Show all comments

Showing thread 2 of 68

acomjean5 replies#
Didn't work for me. Here's what I got.

I cleaned out .ssh/knownhosts after connecting.

    +---------------------------------------------------------------------+
    |                                                                     |
    |             _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, did you know that GitHub publishes all users'          |
    |  ssh public keys and Ben (benjojo.co.uk) grabbed them all?          |
    |                                                                     |
    |  That's pretty handy at times :) But not this time :(               |
    |                                                                     |
    |                                                                     |
    |  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.

Arams-MacBook-Pro:~ acomjean$ emacs .ssh/known_hosts

joeblau1 reply#
Didn't work for me either. It seems like it fails more than it succeeds based on the results posted in this thread.
riffraff2 replies#
presumably, those for which it worked are less likely to post? FWIW, it worked for me.
joeblau1 reply#
That is true! I didn't think about that.

Continue this thread — 1 reply

igravious#
and it worked for me too, just thought i'd chime in here. nice educational and simple project.
bmelton1 reply#
It's probably most apt to working when the local username is the same as the username in your SSH keys.

If your local username is something like "johndoe", while your server logins (and keys mapping to them) is "jdoe", it isn't likely to align the one to the other.
If your local and remote usernames tend to be the same, and they are also the same as your Github keys, then it's probably pretty likely to be accurate.

taejo#
It's based exclusively on the public key. My local username and github login are unrelated, and it worked for me.
FiloSottile5 replies#
Hi! A few reasons it might fail:

* You don't have your SSH keys on GitHub
* You don't have your GitHub keys on that laptop
* Your key is not RSA (because I'm LAZY)
* Your ssh version uses only recent algorithms not supported by Go's x/crypto/ssh
* You actually disabled IdentityKeys
Nothing to do with usernames or heuristics, by the way. All it does is first enumerate your client keys, then let you in, then check a huge GitHub keys database, then ask the GitHub API for your name.
https://github.com/FiloSottile/whosthere#how-it-works

rmetzler1 reply#
- The key might be to new for the dataset.
lelandbatey#
This was the case for me. The keys I'm using now I added this past weekend, and I get the "couldn't find you" message.
noobermin#
Whenever I push, I login. Apparently this laziness saved my ass this time. Of course, this could be used on any service I ssh into regularly and has a scrappable listing of users, so it's good of you to bring this up.
microcolonel#
I'm using ed25519 with Github, figured it was just laziness. (also deliberately set it up to send that key because it wouldn't normally).
hobarrera#
I had the same result, and was rather surprised. It's probably because I have a DSA key.

Aren't these published by github too?

bonzini#
It also does not work with keys from a smartcard (yubikey NEO). Here is the ssh log:

    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: cardno:000603010929
    debug2: we sent a publickey packet, wait for reply
    debug1: Authentications that can continue: publickey,keyboard-interactive
    debug1: Trying private key: /home/pbonzini/.ssh/id_rsa
    debug1: Trying private key: /home/pbonzini/.ssh/id_dsa
    debug1: Trying private key: /home/pbonzini/.ssh/id_ecdsa
    debug1: Trying private key: /home/pbonzini/.ssh/id_ed25519
    debug2: we did not send a packet, disable method
    debug1: No more authentication methods to try.
rietta#
I got the same.
reidrac#
Just run "ssh-keygen -R whoami.filippo.io".