Mike:

You probably run openssh on that Solaris.
In this case you have to add your rsa and/or dsa public keys to
the authorized_keys2 file instead of authorized_keys on the remote system.
The rsa1 public keys go to authorized_keys.

Attila Peter

-----Original Message-----
From: Mike Kistler [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 17. August 2001 05:27
To: [EMAIL PROTECTED]
Subject: Problem with public-key authentication



I can't get SSH to work with public-key authentication.  I have tried to
faithfully follow
the instructions in the man page ... to no avail.  To be very specific, I
use the following
steps:

ssh-keygen -t rsa
cd .ssh
scp id_rsa.pub <rmthost>:~/.ssh/authorized_keys
<enter my password for rmthost>
ssh -v <rmthost>                                    # now I ought to get
public key authentication
debug1: Host '<rmthost>' is known and matches the RSA host key.
debug1: Found key in /home/mike/.ssh/known_hosts2:1
debug1: bits set: 1005/2049
debug1: ssh_rsa_verify: signature correct
debug1: Wait SSH2_MSG_NEWKEYS.
debug1: GOT SSH2_MSG_NEWKEYS.
debug1: send SSH2_MSG_NEWKEYS.
debug1: done: send SSH2_MSG_NEWKEYS.
debug1: done: KEX2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue:
publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /home/mike/.ssh/identity
debug1: try pubkey: /home/mike/.ssh/id_rsa
debug1: authentications that can continue:
publickey,password,keyboard-interactive
debug1: try privkey: /home/mike/.ssh/id_dsa
debug1: next auth method to try is password
mike@<rmthost>'s password:

So the public key authentication apparently failed, but I have no idea why.

I am using RedHat 7.0 with the latest ssh RPMs installed (2.5.2p2).  I am
trying
to connect to a machine running Solaris 5.7.  If I enter my password, I can
connect
fine.  But I really want the public key encryption to work ... please help!!

Mike Kistler

Reply via email to