Tuesday, March 10, 2015

host command returns correct IP but SSH still goes somewhere else!

When /etc/hosts overrides DNS strange things might happen like in this case today when someone would ssh into a remote machine but end up still in his own host.

You better run ping and host and if there are not the same then look for the domain in question inside /etc/hosts.

No comments:

Followers