Adrian Gabrean wrote:
> I've created a public key, using all the correct procedures, right
> permissions etc.
> Could someone take a look at my debug and tell me what is wrong? Why
> doesn't it work? I do not understand what is wrong from this debug:

> debug1: identity file /data/.ssh/identity type 0
> debug1: identity file /data/.ssh/id_rsa type 0
> debug1: identity file /data/.ssh/id_dsa type 0

"type 0" keys are SSH Protocol 1 keys (see key.h, look for "enum types"
and count from zero), however...

> debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2p1
> FreeBSD-20050903're making a SSH Protocol 2 connection, and so...

> debug1: Next authentication method: publickey
> debug2: we did not send a packet, disable method

....the client has no SSHv2 with which to attempt pubkey authentication,
and continues to the next method.

You need to generate a key for protocol 2 on the client ("ssh-keygen -t
rsa" or "ssh-keygen -t dsa", you probably want to replace the existing
id_rsa and/or id_dsa files) then install the corresponding public key
onto the server.

Modern versions of vanilla OpenSSH will generate SSH 2 RSA keys by
default (but I think FreeBSD changed this to DSA in their codebase).

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.