Operating System - HP-UX
1826420 Members
3082 Online
109692 Solutions
New Discussion

Ssh problems beetween VMS and HP ux 11i box

 
Chartier Jerome
Frequent Advisor

Ssh problems beetween VMS and HP ux 11i box

Hi all,

I've got a problem to get a unix and a vms box communicate. The two servers are on the same lan,i can connect with ssh from unix client to vms server, but it doesn't work from the other side.. seebelow the error message:
debug1: sshd version OpenSSH_3.6.1p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Server will not fork when running in debugging mode.
Connection from 10.28.138.211 port 56385
debug1: Client protocol version 1.99; client software version 2.4.1 SSH Secure Shell OpenVMS V1.0
debug1: match: 2.4.1 SSH Secure Shell OpenVMS V1.0 pat 2.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server 3des-cbc hmac-sha1 none
debug1: kex: server->client 3des-cbc hmac-sha1 none
debug1: expecting SSH2_MSG_KEXDH_INIT
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user root service ssh-connection method none
debug1: attempt 0 failures 0
debug1: Starting up PAM with username "root"
debug1: PAM setting rhost to "monica"
debug1: PAM Password authentication for "root" failed[9]: Authentication failed
Failed none for root from 10.28.xxx.xxx port 56385 ssh2
debug1: userauth-request for user root service ssh-connection method publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 0/3 (e=0/3)
debug1: trying public key file //.ssh/authorized_keys
Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
debug1: restore_uid: 0/3
debug1: temporarily_use_uid: 0/3 (e=0/3)
debug1: trying public key file //.ssh/authorized_keys
Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
debug1: restore_uid: 0/3
Failed publickey for root from 10.28.xxx.xxx port 56385 ssh2
debug1: userauth-request for user root service ssh-connection method none
debug1: attempt 2 failures 2
Failed none for root from 10.28.xxx.xxx port 56385 ssh2
Received disconnect from 10.28.xxx.xxx: 14: No further authentication methods available.
debug1: Calling cleanup 0x4000285a(0x0)
debug1: Calling cleanup 0x40002712(0x0)
Has anyone got any idea?

Thanks in advance
Regards

Jérôme
J@Y
2 REPLIES 2
RAC_1
Honored Contributor

Re: Ssh problems beetween VMS and HP ux 11i box

SSH authetication can be done in three ways.
PAssword based, host based and exchange of public/priv keys.

If you do not set preferred method (sshd_config file)

You have not set any preferred method. To set exchange of public/private keys, you will have to use ssh-keygen command and generate the keys and distribute them to the clients. (authorized_keys file)

Also in your message the protocol mismatch is noticed. You can set than on ssh command line or in sshd_Config file.

Set preferred method and then try.
There is no substitute to HARDWORK
Chartier Jerome
Frequent Advisor

Re: Ssh problems beetween VMS and HP ux 11i box

Hello,

I've already changed the method in Password, which is easier for tests. On client+ server config file;on unix+vms.

The fact is that scp is working with vms serving, and ssh is working with UX box serving.... very strange ...

Any idea

Thanks in advance

Regards

Jerome
J@Y