--Boundary-00=_852dE+I/wFmpUlk
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Friday 26 May 2006 20:19, Pfister, Thomas P wrote:

Hi Thomas,

Thanks for your reply.

> My experience with OpenSSH is limited to getting OpenSSH clients to work
> with our commercial SSH server, so more experienced OpenSSH admins can
> confirm or correct my thoughts here.
>
> These lines from your attachment, ssh.log, look to me like your key file
> has been converted to be compatible with ssh.com's commercial product:
> debug2: key_type_from_name: unknown key type '-----BEGIN'
> ....
> debug2: key_type_from_name: unknown key type '-----END'
> But I believe you said that these same keys work on a different SSH
> Server. Might that server be running the commercial SSH server from
> ssh.com instead of OpenSSH?


Might be. Unfortunately, I've no knowledge of the server's setup.

> That would explain this key file working
> there but not on this server.


Ok, interesting. I created my key by running `ssh-keygen -t dsa'(not sure
about the switches). `ssh -v' gives me "OpenSSH_4.2p1, OpenSSL 0.9.7d 17 Mar
2004", if that is of any help.

> You also do not have an identity file in your .ssh directory. This file
> should have an entry that looks like "IDKey id_dsa". I can't explain
> why your connection works to any server without this file.


Ok, I added such a file, permission 600, with content "IDKey id_dsa"(without
quotes) and things started to happen. When trying to login, `ssh -vvv
englich@HOSTNAME`, I was asked to "Enter passphrase for key
'/home/frans/.ssh/identity'." The password I enter when adding my key with
ssh-add, didn't work, neither did my password for my Linux account(not that I
expected it to).

In the verbose output, this is perhaps of interest:

debug3: Not a RSA1 key file /home/frans/.ssh/identity.
debug2: key_type_from_name: unknown key type 'IDKey'
debug3: key_read: missing keytype
debug1: identity file /home/frans/.ssh/identity type -1

The -vvv output from the run with the `identity' file is attached.

Btw, the admin(for the server I'm having trouble connecting to) said when I
was getting access to send him an "openssh v2 compatible public key". Might
be a hint of the server, or what I am doing wrong.


Cheers,

Frans

--Boundary-00=_852dE+I/wFmpUlk
Content-Type: text/x-log;
charset="iso-8859-1";
name="attempt2.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="attempt2.log"

bash-2.05b$ ssh -vvv HOSTNAME -l englich
OpenSSH_4.2p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to HOSTNAME [IP-ADDRESS] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/frans/.ssh/identity.
debug2: key_type_from_name: unknown key type 'IDKey'
debug3: key_read: missing keytype
debug1: identity file /home/frans/.ssh/identity type -1
debug1: identity file /home/frans/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /home/frans/.ssh/id_dsa.
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
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/frans/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.1
debug1: match: OpenSSH_4.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-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,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
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,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@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-group-exchange-sha1,diffie-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,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
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,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 aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
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
debug2: dh_gen_key: priv key bits set: 135/256
debug2: bits set: 531/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/frans/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 160
debug3: check_host_in_hostfile: filename /home/frans/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 160
debug1: Host 'HOSTNAME' is known and matches the RSA host key.
debug1: Found key in /home/frans/.ssh/known_hosts:160
debug2: bits set: 502/1024
debug1: ssh_rsa_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: /home/frans/.ssh/id_dsa (0x8093e70)
debug2: key: /home/frans/.ssh/identity ((nil))
debug2: key: /home/frans/.ssh/id_rsa ((nil))
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred 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: /home/frans/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/frans/.ssh/identity
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
Enter passphrase for key '/home/frans/.ssh/identity':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/frans/.ssh/identity':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/frans/.ssh/identity':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
debug2: bad passphrase given, try again...
debug1: Trying private key: /home/frans/.ssh/id_rsa
debug3: no such identity: /home/frans/.ssh/id_rsa
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).
bash-2.05b$

--Boundary-00=_852dE+I/wFmpUlk--