Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSH 2 PubKeyAuthentication

14 views
Skip to first unread message

Stefan Bertels

unread,
Sep 23, 2002, 6:45:58 AM9/23/02
to
Hello!

I have a problem with OpenSSH. Password Authentication works,
RSAAuthentication too (SSH 1). I want to use SSH2
(PubKeyAuthentication) - but I always get "No challenge". DEBUG3
(sshd/ssh) didn't show the reason why this isn't working. The pubkey
is in ~myuser/.ssh/authorized_keys, sshd_config says
PubKeyAuthentication yes and RSAAuthentication yes.

I generate a key pair on the client and copy the public key to
"myuser@remotehost:.ssh/authorized_keys". If I use "ssh-keygen -t
rsa1" all is fine. If I use "ssh-keygen -t rsa" (SSH2) this doesn't
work.

Any hints?

Best regards
Stefan Bertels

Richard Silverman

unread,
Sep 23, 2002, 1:18:09 PM9/23/02
to

Post the debug traces.

--
Richard Silverman
sl...@shore.net

Mariano Manicastri

unread,
Sep 24, 2002, 9:01:51 AM9/24/02
to
Try this:

ssh-keygen -t dsa

then copy your public key in the authorized keys file,
which could be named authorized_keys2. Make sure
public key authentication is tried first inthe config files.
By the way, it would be useful to know which os you're
running under.

HTH
Mariano

"Stefan Bertels" <po...@stefan-bertels.de> ha scritto nel messaggio
news:62eefd86.02092...@posting.google.com...

Michael

unread,
Sep 24, 2002, 9:06:29 AM9/24/02
to
Hi,

Stefan Bertels schrieb:

you have to put the pub-key in ~/.ssh/authorized_keys2 with
the rights 644.

Regards
Michael

0 new messages