On Wed, 12 Apr 2000, Sebastian Zimmermann wrote:

> 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.

Thanks a lot. It worked like a charm. I hope it does not break other
things (I am thinking about NQS(a queueing system)).

For HP-UX 10.20 you need to change /etc/rc.config.d/netconf.

> 
> 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       |
> +----------------------------------------+
> 

Dr. Rafael R. Pappalardo
Dept. Quimica Fisica, Fac. de Quimica, Univ. de Sevilla. 41012-Sevilla (Spain)
e-mail: [EMAIL PROTECTED]

Reply via email to