Title: RE: Client gives wrong host name

Do a 'uname -n' on turina. if it reports the turina instead of turina.us.es you must change the nodename of your box. On Solaris this can be done with uname -S OR by modifiying the appropriate files in /etc/net/tic* directories.

Be aware however that doing this may break currently running applications that are using the shortname. Try it on a test system to get familiar with how HP-UX behaves with the nodename change.

JIM

-----Original Message-----
From: Gregor Mosheh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 5:56 PM
To: Rafael Rodriguez Pappalardo
Cc: [EMAIL PROTECTED]
Subject: Re: Client gives wrong host name



Under most UNIXes, this can be fixed by changing the order of entries in
the /etc/hosts file. The client will give the first hostname it finds that
matches its IP address, and if this is the short hostname instead of the
long hostname, problems occur.

Example /etc/hosts file:
150.214.145.66       turina.us.es turina


--
Gregor Mosheh
[EMAIL PROTECTED]
Systems Admin, Humboldt Internet
707.825.4638


On Tue, 11 Apr 2000, Rafael Rodriguez Pappalardo wrote:

> 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. I have compiled with
> --enable-debug and run the server in the linux machine and the client in
> the HP-UX one both with debuging enabled. I obtain the following
> message:
>
> debug: Remote version: SSH-1.99-2.1.0 SSH Secure Shell (non-commercial)
>
> debug:
> Ssh2AuthHostBasedRhosts/auths-hostbased-rhosts.c:320/ssh_server_auth_hostbased_rhosts:
> Accepted for turina.us.es [150.214.145.66] by /etc/hosts.equiv.
> debug:
> Ssh2AuthHostBasedServer/auths-hostbased.c:145/ssh_server_auth_hostbased:
> Client gave us a hostname ('turina.') which doesn't match the one we
> got from DNS ('turina.us.es.')
> sshd2[14182]: Client gave us a hostname ('turina.') which doesn't match
> the one we got from DNS ('turina.us.es.')
> debug: ssh_sigchld_real_callback
> sshd2[14182]: Local disconnected: Connection closed.
>
> Local connections from the linux machine to itself does work.
> HP-UX to HP-UX fails with the same message.
>
> Any solution?
>
> Dr. Rafael R. Pappalardo
> Dept. Quimica Fisica, Fac. de Quimica, Univ. de Sevilla. 41012-Sevilla (Spain)
> e-mail: [EMAIL PROTECTED]
>
>
>

Reply via email to