Hey all, Ok, I apologize for the long post but, as much as I hate to admit it, I am stuck and was hoping someone may be able to help me figure this out. I am having a hard time getting my public keys to work. As far as password authentication goes, it works no problem, but I would like to use public keys. My problem seems to be that, it seems to me, that my keys are not being read. If I don't generate my protocol 2 keys (id_rsa or id_dsa) then a section of my verbose looks like this:
debug1: Connection established. debug1: read PEM private key done: type DSA debug1: read PEM private key done: type RSA debug1: identity file /home/[username]/.ssh/identity type 0 debug1: identity file /home/[username]/.ssh/id_rsa type -1 debug1: identity file /home/[username]/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p2 debug1: match: OpenSSH_2.9p2 pat ^OpenSSH Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_2.9p2 This is if I just generate the protocol 1 key (identity.pub). It is later followed by: debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,password,keyboard-interactive debug3: authmethod_lookup publickey debug3: remaining preferred: password,keyboard-interactive debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try privkey: /home/[username]/.ssh/id_rsa debug3: no such identity: /home/[username]/.ssh/id_rsa debug1: try privkey: /home/[username]/.ssh/id_dsa debug3: no such identity: /home/[username]/.ssh/id_dsa debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: keyboard-interactive debug3: authmethod_is_enabled password debug1: next auth method to try is password [username]@[host]'s password: Makes sense. I guess the -1 at the top would suggest that the files do not exist which is verified at the bottom. Now, if I generate the other keys, my verbose is as follows: debug1: Connection established. debug1: read PEM private key done: type DSA debug1: read PEM private key done: type RSA debug1: identity file /home/[username]/.ssh/identity type 0 debug3: No RSA1 key file /home/[username]/.ssh/id_rsa. debug2: key_type_from_name: unknown key type '-----BEGIN' debug3: key_read: no key found debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug3: key_read: no space debug2: key_type_from_name: unknown key type '-----END' It will do this for each file then end with: debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,password,keyboard-interactive debug3: authmethod_lookup publickey debug3: remaining preferred: password,keyboard-interactive debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try pubkey: /home/[username]/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug1: try pubkey: /home/[username]/.ssh/id_dsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: keyboard-interactive debug3: authmethod_is_enabled password debug1: next auth method to try is password [username]@[host]'s password: After generating the keys, I copy them to the remote machine /home/[username]/.ssh/authorized_keys2. One key per line. I don't have a clue where '-----Begin' is coming from although I do know that other ssh vendors have keys that start like that with a comment. Does anyone have a clue? Any help at all would be greatly appreciated. Thanks in advance... DB --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
