Public key authentication between open-ssh and ssh2
From: Sumit Malhotra (smalhotra@burgundyinfotech.com)
Date: 04/24/03
- Next message: ColoC: "Re: Non-interactive SSH Login."
- Previous message: Peter Rehäußer: "Re: Disallow users to login via ssh?"
- Next in thread: Neil W Rickert: "Re: Public key authentication between open-ssh and ssh2"
- Reply: Neil W Rickert: "Re: Public key authentication between open-ssh and ssh2"
- Reply: Bill Unruh: "Re: Public key authentication between open-ssh and ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: smalhotra@burgundyinfotech.com (Sumit Malhotra) Date: 24 Apr 2003 00:14:06 -0700
Hi
i need to ssh via public key authentication from openssh to ssh2. i
have tried the following way but it din't work please help me finding
teh mistake i am repeating :
1. OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f (Red hat
8.0)
2. SSH version 2.0.13(Red hat 6.2)
redhat 6.2+ssh2>ssh-keygen -t dsa -b 1024 /root/.ssh2/mykey
redhat 6.2+ssh2>echo "key mykey.pub" >>/root/.ssh2/authorization
redhat 6.2+ssh2>scp /root/.ssh2/mykey
<redhat8.0+openssh>:/root/.ssh/id_dsa
but the authentocation didn't work i get the following out put while
connecting to the host via ssh at <redhat8.0+openssh>
[root@dsn-webdb .ssh2]# ssh root@192.168.1.98 -vv
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.98 [192.168.1.98] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug2: key_type_from_name: unknown key type '----'
debug2: key_type_from_name: unknown key type 'Subject:'
debug2: key_type_from_name: unknown key type 'Comment:'
debug2: key_type_from_name: unknown key type '33:26'
debug2: key_type_from_name: unknown key type '----'
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version 2.0.13
(non-commercial)
debug1: match: 2.0.13 (non-commercial) pat
2.0.13*,2.0.14*,2.0.15*,2.0.16*,2.0.17*,2.0.18*,2.0.19*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.4p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss
debug2: kex_parse_kexinit:
3des-cbc,blowfish-cbc,twofish-cbc,arcfour,none
debug2: kex_parse_kexinit:
3des-cbc,blowfish-cbc,twofish-cbc,arcfour,none
debug2: kex_parse_kexinit: hmac-md5,md5-8,none
debug2: kex_parse_kexinit: hmac-md5,md5-8,none
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client 3des-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: dh_gen_key: priv key bits set: 182/384
debug1: bits set: 493/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '192.168.1.98' is known and matches the DSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: bits set: 521/1024
debug1: ssh_dss_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: buggy server: service_accept w/o service
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password
debug1: next auth method to try is publickey
debug1: try privkey: /root/.ssh/identity
debug1: try privkey: /root/.ssh/id_rsa
debug1: try privkey: /root/.ssh/id_dsa
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/root/.ssh/id_dsa':
>>>>> i have a blank password but it ask for it ?????
is there some compatibility issue in the ssh2 and openssh
communication
please help
thanks in advance
sumit
- Next message: ColoC: "Re: Non-interactive SSH Login."
- Previous message: Peter Rehäußer: "Re: Disallow users to login via ssh?"
- Next in thread: Neil W Rickert: "Re: Public key authentication between open-ssh and ssh2"
- Reply: Neil W Rickert: "Re: Public key authentication between open-ssh and ssh2"
- Reply: Bill Unruh: "Re: Public key authentication between open-ssh and ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|