Operating System - HP-UX
1753816 Members
8411 Online
108805 Solutions
New Discussion юеВ

Problem with self-compiled openssh under HP-UX

 
Anatoli Mazalski
New Member

Problem with self-compiled openssh under HP-UX

Hi all,

I have a problem with openssh (for the various reasons I don't want to use pre-compiled packages). I've compiled ssl and ssh with gcc compiler and everything works fine. The only problem is that HPs can not determine IP-address of a remote host if I want to ssh.

> ssh hostname
The authenticity of host 'hostname (0.0.0.0)' can't be established.
RSA key fingerprint is ... etc.

I have no idea where this IP (0.0.0.0) is from. ssh works, but I can not save the ssh-key in the known_hosts file.

The packages from HP does not have this problem.

I can set the CheckHostIP option in the ssh_config to "no", but I think it's not really good.

Any ideas?

Thanks a lot!
9 REPLIES 9
Chris Vail
Honored Contributor

Re: Problem with self-compiled openssh under HP-UX

First check if telnet, ftp, and other utilities can do the lookup. This may be a DNS or /etc/hosts table issue. Try nslookup HOSTNAME to see if that works. Check /var/adm/syslog for entries from sshd.

I've only had experience on the HP precompiled binaries, so apart from this, I also don't know where to start.


Chris
David_246
Trusted Contributor

Re: Problem with self-compiled openssh under HP-UX

Hi,

must be a config error :

# ssh blabla
ssh: blabla: no address associated with hostname.

So this proves when a host is unknown it gives you another error.

I will look up previous answers of me for a config example.


Regs David

Back in a sec
@yourservice
David_246
Trusted Contributor

Re: Problem with self-compiled openssh under HP-UX

got it :

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1d5a2d88ce9cd711abdc0090277a778c,00.html

Please compair these config files with yours, there might be some sort of a problem in here.

You do know you need to add the ssh-keygen keys into the users homedir first, right ? If not I have a nice doc to read for you.


Regs David
@yourservice
Steven E. Protter
Exalted Contributor

Re: Problem with self-compiled openssh under HP-UX

Could be just permissions.

ssh does even without public keys exchanged keep of record of "where its been"

I've seen similar messages with HP's depots.

Q. If you have used HP's depots, why aren't you sticking with them. They are pretty good.

I'm attaching a Chris Vail special document that does have some important info about correct permissions on certain key files.

Regards,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Cowan
Honored Contributor

Re: Problem with self-compiled openssh under HP-UX

Have you tried ssh 1.2.3.4 (or whatever the IP address of the destiniation is)?

I've seen this problem when the machine is confused about its own identity, and telnet localhost etc. don't work!


Good luck,
Andrew
Anatoli Mazalski
New Member

Re: Problem with self-compiled openssh under HP-UX

Thanks a lot for your answers. I don't think that is a configuration issue, I use the same configuration with the same selfcompiled openssh on other workstations (Solaris, IRIX, Linux), there is the problem only with HP/UX.

I try to connect to a host that really exist, has a valid IP-Address, and works with another hosts in the same ssh configuration.

If I try to do the same with
ssh -v ip.address
I get following output:

65#: ssh -v 10.x.x.x
OpenSSH_3.6p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to 10.x.x.x [0.0.0.0] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6p1
debug1: match: OpenSSH_3.6p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '10.x.x.x' is known and matches the RSA host key.
debug1: Found key in /usr/local/etc/ssh_known_hosts:9
Warning: Permanently added the RSA host key for IP address '0.0.0.0' to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
debug1: Next authentication method: password
root@10.x.x.x's password:
David_246
Trusted Contributor

Re: Problem with self-compiled openssh under HP-UX

Hi,

Try to run a tusc on a normal way, without the -vv options

tusc ssh

and please attach the output. We can have a better look on what the problem might be. Also, scp, sftp, etc do they have the same problem ?

Regs David

P.S. assigning points might be friendly
@yourservice
Anatoli Mazalski
New Member

Re: Problem with self-compiled openssh under HP-UX

Hallo David;

thanks a lot for the useful tip with tusc, I've found a problem. It were the libnss_files.1 and libnss_dns.1 libraries for hppa20 architecture from /usr/lib/pa20_64 directory. After recompiling with -mpa-risc-1-1 there is no problem more. Really interesting is this issue. Is there a better "workaround" as the recompiling for RISC-1.1?

P.S.: how can I assign these points/scores/whatever?
David_246
Trusted Contributor

Re: Problem with self-compiled openssh under HP-UX

Hi,

I am happy to see you fixed the problem !
Tusc indeed is a very helpfull friend, it help me out several times.

About assigning points. If you are logged in and look at your own posting you see an option list just above each answer you got. You can choose a point rate from 0 - 10. It would be friendly to always give everybody points, even if it didn't help you at all. The person still spent time to help you with your problem.

Ones you selected the point amount (for all questons), you can hit the submit button completely down left. You will only see this button and the option values if you are logged in. Ones you hit the submit button, you get a thank you for submitting the points.

Normaly you give a 0-3 point if it didn't help but just say thanks for your time, the 3-7 for thanks, almost the solution and 8-10 point for the magic answer. The magic answer will also give you the bunny to your posting when looking it up in the overview list. Most of all a posting is a kind of closed by then, as the magic answer is given.

Hope you understand it all. All the good luck there is, and if there is any more to ask, just let us know.

Best regs David
@yourservice