- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- RSA between linux and hp-ux
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
10-08-2009 05:37 AM
10-08-2009 05:37 AM
But I can't get it to work between hp-ux 11.23 and linux 2.4.21 (redhat 3) using exactly the same config at user level.
I'm not in a position to be able to upgrade the redhat 3 server.
Any ideas ?
Best regards,
Richard.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:26 AM
10-08-2009 06:26 AM
Re: RSA between linux and hp-ux
Any explanation of what "can't get it to
work" really means? The usual SSH diagnostic
involves adding "-v" to an "ssh" command, and
looking at the output. And then looking at
the system log file(s) on the server.
> [...] exactly the same config at user level.
Not really a complete description of
anything, is it?
A Forum search will find many old SSH
threads, showing this stuff in action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:30 AM
10-08-2009 06:30 AM
Re: RSA between linux and hp-ux
Well it would be helpful to see the error code you are getting in the redhat three server.
On the red hat system.
ssh-keygen -t rsa
Take an authorized_keys file from an HP-UX system and put it in the .ssh directory.
Make sure all the file ownership and permissions in .ssh, the home directory are owned by the right users and match an working systems.
Here is a document.
http://www.hpux.ws/?p=10
That document works very well on HP-UX or Linux.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:36 AM
10-08-2009 06:36 AM
Re: RSA between linux and hp-ux
I've checked all the usual file protection issues for the .ssh directory and the authorized_keys file. I've also tried calling it authorized_keys2 . I've cksummed authorized_keys and id_rsa.pub and they are identical.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:57 AM
10-08-2009 06:57 AM
Re: RSA between linux and hp-ux
>
> I've checked all the usual [...]
> I've also tried [...]
> I've cksummed [...]
About the only things you haven't done are:
1. Describe the problem.
2. Show the "ssh -v [...]" results.
3. Show the stuff from the server log file(s).
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions and interpretations.
As a minor example, saying something like,
"I've checked all the usual file protection
issues [...]" is not the same as showing
actual "ls -l" output. Perhaps you really do
know whereof you speak, but you are asking
about this stuff here, so, with no evidence,
your opinion might reasonably be suspect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 07:04 AM
10-08-2009 07:04 AM
Re: RSA between linux and hp-ux
Unfortunately the remote system is a customer system and I can't easily have a look at the syslog on there. May be possible over the next few days.
Anyway here are the 2 ssh -v outputs...
Working...
OpenSSH_4.1, OpenSSL 0.9.7e 25 Oct 2004
HP-UX Secure Shell-A.04.00.001, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to xxxxxx [xxxxxx] port 22.
debug1: Connection established.
debug1: identity file /home/users/xxxxxx/.ssh/id_rsa type 1
debug1: identity file /home/users/xxxxxx/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
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(1024<1024<8192) 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 'xxxxxx' is known and matches the RSA host key.
debug1: Found key in /home/users/xxxxxx/.ssh/known_hosts:3
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,gssapi-with-mic,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/users/xxxxxx/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Thu Oct 8 15:38:27 2009 from xxxxxx
Not Working...
OpenSSH_4.1, OpenSSL 0.9.7e 25 Oct 2004
HP-UX Secure Shell-A.04.00.001, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to 172.1xxxxxxx [172.1xxxxxxx] port 22.
debug1: Connection established.
debug1: identity file /home/users/xxxxxx/.ssh/id_rsa type 1
debug1: identity file /home/users/xxxxxx/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
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(1024<1024<8192) 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 'xxxxxxx' is known and matches the RSA host key.
debug1: Found key in /home/users/xxxxxx/.ssh/known_hosts:1
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
debug1: Next authentication method: publickey
debug1: Offering public key: /home/users/xxxxxx/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/users/xxxxxx/.ssh/id_dsa
debug1: Next authentication method: password
At this point the system prompts for a password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 04:41 PM
10-08-2009 04:41 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 07:57 PM
10-08-2009 07:57 PM
Re: RSA between linux and hp-ux
> debug1: Offering public key: /home/users/xxxxxx/.ssh/id_rsa
> debug1: Server accepts key: pkalg ssh-rsa blen 149
> debug1: read PEM private key done: type RSA
> debug1: Authentication succeeded (publickey).
Yup, that's a happy server.
> debug1: Next authentication method: publickey
> debug1: Offering public key: /home/users/xxxxxx/.ssh/id_rsa
> debug1: Authentications that can continue: publickey,password
> debug1: Trying private key: /home/users/xxxxxx/.ssh/id_dsa
> debug1: Next authentication method: password
Your SSH client sent both keys ("id_rsa" and
"id_dsa", assuming that those files exist) to
the server, and the server didn't like either
of them. At this point, I'd try to see
what's in the server's log file(s), because
only the server knows why it didn't like
them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 10:25 PM
10-08-2009 10:25 PM
Re: RSA between linux and hp-ux
compare the versions of SSH/SSL on all involved servers. check your syslog, it might contain more information on why the keys were not accepted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:13 AM
10-13-2009 07:13 AM
Re: RSA between linux and hp-ux
It's working now.
It was the permissions on the home directory of the remote system ( not the .ssh directory).
/home/
I set it to 750 and it all works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:31 AM
10-13-2009 07:31 AM
Re: RSA between linux and hp-ux
> directory of the remote system ( not the
> .ssh directory).
If one's bad, then a villain can change the
other.
Curiosity: How did you find the problem?
Log files? Guesswork? ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:47 AM
10-13-2009 07:47 AM
Re: RSA between linux and hp-ux
As for how fixed...
Trial and error I suppose. Some might say guesswork :-)
We tested from a system at the same rev level as the target system and that didn't work either so I revisited all the permission issues again. I was too fixed on .ssh and authorized_keys. In mitigation , this is what the help pages keep banging on about.
Thanks again.