5 ms·
This is fun, but if you cat out your ~/.ssh/known_hosts file, you'll probably find that it's not hashed, and is just coughing up a map of your SSH relationships
by tptacek 8y ago
This is fun, but if you cat out your ~/.ssh/known_hosts file, you'll probably find that it's not hashed, and is just coughing up a map of your SSH relationships to anyone who can read it.
It's true though, known_hosts for pivoting is a basic network pentest trick.
- caf 8y agoMaybe stashing a honeypot address in the known_hosts is a good idea?
- stormbrew 8y agoIt's been turned on by default on every ubuntu machine I've used/installed in the last few years. I believe that comes from debian [1]. So I don't think it's that unlikely that any given reader of this has it enabled, tbh. [1] search for HashKnownHosts here: https://manpages.debian.org/jessie/openssh-client/ssh_config.5.en.html https://manpages.debian.org/jessie/openssh-client/ssh_config...
- throwaway2048 8y agoIts the default in the openBSD openssh upstream, has been for years and years.
- jwilk 8y agoIs it? https://man.openbsd.org/ssh_config#HashKnownHosts https://man.openbsd.org/ssh_config#HashKnownHosts says "The default is no".