- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error when connecting via ssh: Couldn't import hos...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2010 11:42 PM
02-04-2010 11:42 PM
Error when connecting via ssh: Couldn't import hostname
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2010 11:56 PM
02-04-2010 11:56 PM
Re: Error when connecting via ssh: Couldn't import hostname
http://www.tek-tips.com/faqs.cfm?fid=5600
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2010 12:51 AM
02-05-2010 12:51 AM
Re: Error when connecting via ssh: Couldn't import hostname
thanks,
Jed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2010 01:02 AM
02-05-2010 01:02 AM
Re: Error when connecting via ssh: Couldn't import hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2010 08:04 AM
02-06-2010 08:04 AM
Re: Error when connecting via ssh: Couldn't import hostname
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2010 12:56 PM
02-06-2010 12:56 PM
Re: Error when connecting via ssh: Couldn't import hostname
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2010 05:11 PM
02-06-2010 05:11 PM
Re: Error when connecting via ssh: Couldn't import hostname
Try using either canonical or FQDN
eric.foobarbaz.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 05:55 PM
02-07-2010 05:55 PM
Re: Error when connecting via ssh: Couldn't import hostname
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 05:59 PM
02-07-2010 05:59 PM
Re: Error when connecting via ssh: Couldn't import hostname
Without the -v option for ssh,only "Couldn't import hostname" shows up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 06:44 PM
02-07-2010 06:44 PM
Re: Error when connecting via ssh: Couldn't import hostname
debug1: no match: Sun_SSH_1.1.1
Have you verified the compatibilty between HP's version and the Solaris version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 07:02 PM
02-07-2010 07:02 PM
Re: Error when connecting via ssh: Couldn't import hostname
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 07:34 PM
02-07-2010 07:34 PM
Re: Error when connecting via ssh: Couldn't import hostname
HPUX ssh version - OpenSSH_3.6.1p2
SUN ssh version - Sun_SSH_1.1.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 08:42 PM
02-07-2010 08:42 PM
Re: Error when connecting via ssh: Couldn't import hostname
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 09:34 PM
02-07-2010 09:34 PM
Re: Error when connecting via ssh: Couldn't import hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 10:05 PM
02-07-2010 10:05 PM
Re: Error when connecting via ssh: Couldn't import hostname
> [...]
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2010 10:21 PM
02-07-2010 10:21 PM
Re: Error when connecting via ssh: Couldn't import hostname
thanks,
Jed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2010 09:52 AM
02-08-2010 09:52 AM
Re: Error when connecting via ssh: Couldn't import hostname
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