Operating System - HP-UX
1833262 Members
2827 Online
110051 Solutions
New Discussion

Re: ssh2 authentication problem

 
dictum9
Super Advisor

ssh2 authentication problem

It's on hp-ux 11.0. I did the key exchange, the public key is in $HOME/.ssh2/authorized_keys2

# /usr/local/bin/ssh2 -v -v -v -l user1g machine1
debug: SshConfig/sshconfig.c:3071: Metaconfig parsing stopped at line 3.
debug: SshConfig/sshconfig.c:3364: Read 0 params from config file.
debug: Ssh2/ssh2.c:1758: User config file not found, using defaults. (Looked for '/home/user1g/.ssh2/ssh2_config')
debug: Connecting to machine1, port 22... (SOCKS not used)
debug: Ssh2Transport/trcommon.c:3748: My version: SSH-1.99-3.2.9 F-SECURE SSH 3.2.3
debug: client supports 3 auth methods: 'publickey,keyboard-interactive,password'
debug: Ssh2Common/sshcommon.c:587: local ip = 131.82.244.2, local port = 51388
debug: Ssh2Common/sshcommon.c:589: remote ip = 131.82.244.2, remote port = 22
debug: SshConnection/sshconn.c:1945: Wrapping...
debug: SshReadLine/sshreadline.c:2420: Initializing ReadLine...
debug: Remote version: SSH-2.0-3.2.9 F-SECURE SSH 3.2.3
debug: Major: 3 Minor: 2 Revision: 9
debug: Ssh2Transport/trcommon.c:1376: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/trcommon.c:1441: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1444: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:379: Received SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:429: Received SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: server offers auth methods 'publickey,password'.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1794: Starting pubkey auth...
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1751: Agent is not running.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1549: Got 0 keys from the agent.
debug: SshConfig/sshconfig.c:2979: Unable to open /home/user1g/.ssh2/identification
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1529: Trying 0 key candidates.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:983: All keys declined by server, disabling method.
debug: Ssh2AuthClient/sshauthc.c:318: Method 'publickey' disabled.
debug: server offers auth methods 'publickey,password'.
debug: Ssh2AuthPasswdClient/authc-passwd.c:105: Starting password auth...
user1g's password:
2 REPLIES 2
Arunvijai_4
Honored Contributor

Re: ssh2 authentication problem

Hi ETC,

I would recommand you to use HP's Secure shell which contains HP-UX specific changes and supported by HP.

Also, worth reading this thread,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=954343

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

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
David Nixon
Valued Contributor

Re: ssh2 authentication problem

You need to identify your private key
to 'ssh2' ; by using the file:

~user1g/.ssh2/identification.

This file contains the line:

Idkey MyKey

MyKey would be a soft link to your private key:

E.g. MyKey -> id_dsa_2048.a

Similarly, for your public key, set up
the file ~user1g/.ssh2/authorization to
contain the line:

Key MyKey.pub

Then create a soft link to your public key.

Make the file 'authorization' globally readable..