Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: SSH Public Key Problem

Subject: Re: SSH Public Key Problem
Date: Thu, 11 Jan 2007 06:12:20 +1100
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

...you'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 zip.com.au)
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.

<Prev in Thread] Current Thread [Next in Thread>