On the client, as root, type 
hostname turina.us.es
This will set the systems hostname to the FQDN. Most systems only use
the short nickname as hostname. Hostbased authentication under ssh2 does
not work in that case.
Try connecting again. If this works, we found the problem.

There are two general options:
Either you modify the client to always use the long FQDN or you modify
the server to use the short nickname.
You could either do this by manipulating the DNS accordingly (using the
hosts file, for example) or by editing the source code of ssh2.
I prefer the option using FQDN on both sides.
If you have root access to all clients, you could set the hostname to
the FQDN on all machines:

In /sbin/init.d/boot
change
test -n "$FQHOSTNAME" && hostname ${FQHOSTNAME%%.*}
to
test -n "$FQHOSTNAME" && hostname $FQHOSTNAME

Or you could modify the source of the client:
The function ssh_tcp_get_host_name() in sshunixtcp.c should be modified
to always
return the FQDN regardless of the used settings for hostname.

Last option: just switch to ssh1. It will work fine the way it is.

Sebastian Zimmermann


> I have installed Category: SSH version 2 Release: 2.1 noncommercial on
> two different machines. One running Linux 2.2.12 and the other HP-UX
> 10.2. I have chosen hostbased and I have followend all the steps in the
> FAQ. I also have search the mailing list but I have not found an answer.
> I still cannot connect without a password.
> sshd2[14182]: Client gave us a hostname ('turina.') which doesn't match
> the one we got from DNS ('turina.us.es.')

-- 
+----------------------------------------+
| Technische Universit�t Hamburg-Harburg |
| Digitale Kommunikationssysteme (4-06)  |
|            Denickestra�e 17            |
|             21071 Hamburg              |
|----------------------------------------|
|      Telefon: +49 40 42878-3444        |
|      Telefax: +49 40 42878-2941        |
|     http://www.tu-harburg.de/et6       |
+----------------------------------------+

Reply via email to