Re: ssh F7 problem: /etc/hosts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-06-14 at 11:06 +0100, William John Murray wrote:
> I fixed this (using a random google) by changing /etc/hosts from:
>  127.0.0.1 me.domain me localhost.localdomain localhost
> to
> 127.0.0.1 localhost.localdomain   localhost
> 
> So now ssh works again. But there is stern warning in /etc/hosts about
> editing this line. 
>    Have I done something bad? 

The warning is that the line should be as:
  127.0.0.1 localhost.localdomain   localhost
And not modified from that (without concern for the consequences).

Unfortunately, most people don't see that warning before the line has
been modified.  The warning is badly worded.

If you have a network, then it'll have some other address than the local
loopback ones (the 127.0.0.1 one), and that's where your hostname should
be applied (to the interface between it and something else).  This
association does not have to be done using the hosts file, it can be
done through DNS.

-- 
(This box runs Centos 5.0, my others still run FC4, FC5, FC6 & FC7 in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux