On the unix box I have a 2048-bit RSA public key id_rsa.pub in open-ssh
format. I use this key with success on various unix systems.
I used ssh-keygen to export a copy in the format used by VMS; the result
looks like this:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted from OpenSSH by rowen@..."
AAAAB3NzaC1yc2EAAAABIwAAAQEAyTIpI6IxXiv9/UIs/opZ5vPk9CnPCz+p5QwoqD1Klh
...
---- END SSH2 PUBLIC KEY ----
Then I saved that copy to the VMS account as [.SSH2]ID_RSA.PUB
and created [.SSH2]AUTHORIZATION. which contains just the text
"ID_RSA.PUB"
The [.SSH2] dir looks like:
AUTHORIZATION.;1 (RWED,RWED,RWED,RE)
ID_RSA.PUB;1 (R,R,R,R)
RANDOM_SEED.;1 (RWD,RWD,,)
but authentication fails. Any ideas? I've appended a maximally verbose
log (which is rather long).
-- Russell
OpenSSH_4.7p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/rowen/.ssh/config
debug1: Applying options for tccdev
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to ... port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /Users/rowen/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
...(many repeats of that line)...
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /Users/rowen/.ssh/id_rsa type 1
debug1: identity file /Users/rowen/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version 3.2.9
F-SECURE SSH 5.0.1 - Process Software MultiNet
debug1: no match: 3.2.9 F-SECURE SSH 5.0.1 - Process Software MultiNet
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7
debug2: fd 3 setting O_NONBLOCK
debug1: Miscellaneous failure
No credentials cache found
debug1: Miscellaneous failure
No credentials cache found
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,d
iffie-hellman-group14-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,arcfour128,arcfour256,arcfou
r,aes192-cbc,aes256-cbc,rijnda...@lysator.liu.se,aes128-ctr,aes192-ctr
,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfou
r,aes192-cbc,aes256-cbc,rijnda...@lysator.liu.se,aes128-ctr,aes192-ctr
,aes256-ctr
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,uma...@openssh.com,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,uma...@openssh.com,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zl...@openssh.com,zlib
debug2: kex_parse_kexinit: none,zl...@openssh.com,zlib
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:
aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
debug2: kex_parse_kexinit: hmac-sha1,hmac-md5
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_setup: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug2: dh_gen_key: priv key bits set: 122/256
debug2: bits set: 517/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug3: check_host_in_hostfile: filename /Users/rowen/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 8
debug3: check_host_in_hostfile: filename /Users/rowen/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 8
debug1: Host 'tccdev' is known and matches the DSA host key.
debug1: Found key in /Users/rowen/.ssh/known_hosts:8
debug2: bits set: 509/1024
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/rowen/.ssh/id_rsa (0x307a10)
debug2: key: /Users/rowen/.ssh/id_dsa (0x0)
debug3: input_userauth_banner
Welcome to OpenVMS (TM) Alpha Operating System, Version V7.2-1
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred
gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/rowen/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/rowen/.ssh/id_dsa
debug3: no such identity: /Users/rowen/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
tcc@tccdev's password:
You need the keyword KEY in front of the filename, like
"KEY ID_RSA.PUB".
> The [.SSH2] dir looks like:
> AUTHORIZATION.;1 (RWED,RWED,RWED,RE)
> ID_RSA.PUB;1 (R,R,R,R)
> RANDOM_SEED.;1 (RWD,RWD,,)
>
> but authentication fails. Any ideas? I've appended a maximally verbose
> log (which is rather long).
Haven't looked at the log - first fix your AUTHORIZATION file.
cu,
Martin
--
One OS to rule them all | Martin Vorlaender | OpenVMS rules!
One OS to find them | work: m...@pdv-systeme.de
One OS to bring them all | http://vms.pdv-systeme.de/users/martinv/
And in the Darkness bind them.| home: martin.v...@t-online.de
> Russell E. Owen <ro...@u.washington.edu> wrote:
> > I can't seem to make public key authentication work for connecting to a
> > VMS box running Multinet 5.1A from a unix (MacOS X) box.
> >
> > On the unix box I have a 2048-bit RSA public key id_rsa.pub in open-ssh
> > format. I use this key with success on various unix systems.
> >
> > I used ssh-keygen to export a copy in the format used by VMS; the result
> > looks like this:
> > ---- BEGIN SSH2 PUBLIC KEY ----
> > Comment: "2048-bit RSA, converted from OpenSSH by rowen@..."
> > AAAAB3NzaC1yc2EAAAABIwAAAQEAyTIpI6IxXiv9/UIs/opZ5vPk9CnPCz+p5QwoqD1Klh
> > ...
> > ---- END SSH2 PUBLIC KEY ----
> >
> > Then I saved that copy to the VMS account as [.SSH2]ID_RSA.PUB
> > and created [.SSH2]AUTHORIZATION. which contains just the text
> > "ID_RSA.PUB"
>
> You need the keyword KEY in front of the filename, like
> "KEY ID_RSA.PUB".
Oops. That did it. Thank you!
-- Russell