Operating System - HP-UX
1829161 Members
9555 Online
109986 Solutions
New Discussion

Error when connecting via ssh: Couldn't import hostname

 
Jed Ronan Escoreal
Occasional Advisor

Error when connecting via ssh: Couldn't import hostname

Hi,

I have an HPUX v1 box which I tried to setup to connect via passwordless ssh to a solaris 10 box. Everytime I initiate an ssh section, it does not connect and leaves me an error message "Couldn't import hostname". Has anybody else encountered the same error?

thanks,
Jed
16 REPLIES 16
Jupinder Bedi
Respected Contributor

Re: Error when connecting via ssh: Couldn't import hostname

how you are configuring the ssh keys . please let me know . here is procedure to configure the ssh without password .

http://www.tek-tips.com/faqs.cfm?fid=5600



Good Luck
All things excellent are as difficult as they are rare
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

Hi Jupinder, there's no problem w/ the passwordless setup, the problem is w/ ssh. Prior to setting up the passwordless connection, initially tried to do ssh from my hpux box and that's when I first encountered the error.

thanks,
Jed
Jupinder Bedi
Respected Contributor

Re: Error when connecting via ssh: Couldn't import hostname

please check your ssh version . may be this version is outdated. please install the latest version and try again
All things excellent are as difficult as they are rare
Viktor Balogh
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

>Everytime I initiate an ssh section

Initiate from which server? HP-UX? Solaris?

>"Couldn't import hostname"

It's a strange message. Import hostname to where? These telling error messages are bothering me in my nightmares. Maybe you should check if .known_hosts is writable by the user in question. (Ok, it is automatically generated, but one never knows...)


****
Unix operates with beer.
Steven Schweda
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

Actual output from "uname -a" and "ssh -V"
on both systems might be better than vague
descriptions.

> Everytime I initiate an ssh section [...]

Add "-v" to your "ssh" command, and show the
actual command with its actual output.

> Initiate from which server? [...]

Good question(s).

> [...] there's no problem w/ the
> passwordless setup, the problem is w/ ssh.

Huh?
Michael Steele_2
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

Hi

Try using either canonical or FQDN

eric.foobarbaz.com.
Support Fatherhood - Stop Family Law
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

Hi guys,

ssh is initiated from the hpux server(11.11 pa-risc) to the solaris box(sol10). Here's the output btw:

/home/ccb_oper>uname -a
HP-UX CCB_SMS B.11.11 U 9000/800 509453304 unlimited-user license

[ccb_oper@CCB_SMS]:/home/ccb_oper>ssh -v KRPAPD01
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to KRPAPD01 [10.225.6.117] port 22.
debug1: Connection established.
debug1: identity file /home/ccb_oper/.ssh/id_rsa type 1
debug1: identity file /home/ccb_oper/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1.1
debug1: no match: Sun_SSH_1.1.1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1:


debug1: Mechanism encoded as toWM5Slw5Ew8Mqkay+al2g==
debug1:


debug1: Mechanism encoded as A/vxljAEU54gt9a48EiANQ==
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:


Couldn't import hostname
debug1: Calling cleanup 0x40017092(0x0)

Without the -v option for ssh,only "Couldn't import hostname".

much thanks for the replies,
Jed
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

... correction to the last line:

Without the -v option for ssh,only "Couldn't import hostname" shows up.
Michael Steele_2
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

Hi

debug1: no match: Sun_SSH_1.1.1

Have you verified the compatibilty between HP's version and the Solaris version?
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

Hi Again:

What version are you using?

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

Lists compatibly openssh version A.05.30.007, A.05.30.008, and A.05.30.009
Support Fatherhood - Stop Family Law
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

Hi Michael,

HPUX ssh version - OpenSSH_3.6.1p2

SUN ssh version - Sun_SSH_1.1.1

Steven Schweda
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

> HPUX ssh version - OpenSSH_3.6.1p2

Have you considered installing something less
obsolete?

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

> SUN ssh version - Sun_SSH_1.1.1

I don't try very hard, but I have something
at least a little newer there, too:

ra# ssh -V
Sun_SSH_1.1.2, SSH protocols 1.5/2.0, OpenSSL 0x0090704f

ra# uname -a
SunOS ra 5.10 Generic_141444-09 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

thanks! where can I get the 1.1.2 version? As I can remember, i got the latest openssh version but it still shows 1.1.1.

Steven Schweda
Honored Contributor

Re: Error when connecting via ssh: Couldn't import hostname

> [...] where can I get the 1.1.2 version?
> [...]

I don't recall doing anything in particular,
so I'd guess that it was on the most recent
set of Solaris media which I downloaded (and
upgraded from).

However, on the Solaris system, you seem to
be behind by 0.0.1, while on the HP-UX
system, you seem to be behind by more like
1.5.x. I'd worry more about the HP-UX side.
Jed Ronan Escoreal
Occasional Advisor

Re: Error when connecting via ssh: Couldn't import hostname

Thanks steven, i'll try upgrading the hpux one. Will get back to you for the results.

thanks,
Jed

RC Park
Frequent Advisor

Re: Error when connecting via ssh: Couldn't import hostname

Jed,

Have you tried forcing HPUX's ssh to stay at protocol version 1? From the man page:

ssh [-1246AaCfgkMNnqsTtVvXxY]

and

The options are as follows:

-1 Forces ssh to try protocol version 1 only.

You might see if this helps...

-RCP