logoalt Hacker News

drum55 • today at 12:09 AM • 2 replies • view on HN

You can discover what SSH servers are owned by what people by abusing GitHub. They publish the public keys, you have a target SSH server and you send the hashes of the keys you scraped to the server, it tells you which GitHub user has access there. Reverse way, you have a targets keys and you send them to every SSH server on IPv4, and it tells you what servers they own. This is because SSH supports just telling you if a hash of a public key would give you access to an account, meaning you don't need to enter the password for all keys in ~/.ssh sequentially for every server.


Replies

mscdex • today at 12:58 AM

As an SSH server, there's nothing stopping you from always rejecting (or always allowing) those public key checks and only doing any work when sent the full public key authentication request (with the signature).

➕ show 1 reply
cortesoft • today at 12:41 AM

Ideally, you should be using a unique key for every service.

➕ show 1 reply