Skip to main content
2 of 4
Some copyedits.
JdeBP
  • 71.9k
  • 13
  • 175
  • 378

Some misspelled SSH hosts are resolved to 127.0.0.1

I have a Fedora 25 machine. Sometimes I misspell a hostname for SSH. Then I do ssh examle.com. For some reason, I then get connected to my machine (localhost) via SSH. I notice this because if there are SSH_ variables in the environment, my shell prompt shows that.

Right now at home, I get a clean hostname resolution error. What could be the cause of this on occasion? Some local DNS server just resolving everything it does not know to 127.0.0.1?

Martin Ueding
  • 2.8k
  • 4
  • 36
  • 47