Hi,

On Mon, Oct 02, 2006 at 07:55:03PM +0200, Henning Sprang wrote:
> The problem is, under some circumstances, fai-setup creates a
> $LOGUSER_HOME/.ssh/known_hosts with entries that look like this:
> 
> 172.20.2.2 ssh-rsa AAAAB3NzaC1yc2EAAAA...

This happens if the IP of the FAI server does not resolve to any
hostname using 'getent hosts'. With the default nsswitch setup, you
simply have to add an entry like "172.20.2.2 faitest-server-sarge" to
/etc/hosts. The hostname has to equal the log-server as used by the
client.

> I tried to understand the code doing all this, and why it fails, and
> under which circumstances, but did not succeed yet.
> 
> It must be somewhere in setup_fai_account() but I don't understand the
> sed stuff in there.

That code is working fine, but it expects that hosts on the server is
set up appropriately as described above when running fai-setup.

This should be documented in the appropriate places, i.e. the Fai guide,
I suppose. The problem is that FAI uses quite a lot of magic to
determine the log-server when running on the client, so the
documentation should be written by someone who really knows the details
of how that is working.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to