Operating System - HP-UX
1751691 Members
4750 Online
108781 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