Hello All,

Thanks to Daniel Woods for solving the problem.

Turns out that my permissions were incorrect for my authorized_keys2 file.
-rw-r--r--        <------ works fine without prompt
-rw-rw-r--       <----- prompts for password

Hope this help anyone else who may have a similar problem.

Tony Mueller
>  -----Original Message-----
> From:         Tony Mueller  
> Sent: Tuesday, October 24, 2000 9:21 AM
> To:   [EMAIL PROTECTED]
> Subject:      SSH always prompts for password.
> 
> Hello,
> 
> I've read the archives and found problems similar to mine, but with no
> clear solution to the problem.
> 
> I have installed openssh-2.2.0p1.tar.gz on both a SUSE 6.0 and a RedHat
> 6.2 machines
> Additionally I manually installed the PAM control file as /etc/pam.d/sshd
> on the RedHat machine.
> 
> I have the public dsa keys for each machine installed.
> 
> I can successfully ssh without password prompt from RedHat to SUSE (scp
> works too)
> When I try to go from SUSE to RedHat, I get prompted for password (correct
> password gets me in)
> 
> I think the problem is with PAM on RedHat, and the 2 lines from the sshd
> debug log below.
> debug: Starting up PAM with username "rpm"
> Failed none for rpm from 181.70.1.197 port 953 ssh2
> 
> Any help would be very much appreciated.
> 
> Tony Mueller
> 
> P.S.
> Below is the in sshd in debug on RedHat as I try to get in from SUSE
> 
> ...
> debug: kex: client->server 3des-cbc hmac-sha1 none
> debug: kex: server->client 3des-cbc hmac-sha1 none
> debug: Wait SSH2_MSG_KEXDH_INIT.
> debug: bits set: 544/1024
> debug: bits set: 512/1024
> debug: sig size 20 20
> debug: send SSH2_MSG_NEWKEYS.
> debug: done: send SSH2_MSG_NEWKEYS.
> debug: Wait SSH2_MSG_NEWKEYS.
> debug: GOT SSH2_MSG_NEWKEYS.
> debug: done: KEX2.
> debug: userauth-request for user rpm service ssh-connection method none
> debug: Starting up PAM with username "rpm"
> Failed none for rpm from 181.70.1.197 port 953 ssh2
> debug: userauth-request for user rpm service ssh-connection method
> publickey
> DSA authentication refused for rpm: bad ownership or modes for
> '/home/rpm/.ssh/authorized_keys2'.
> Failed publickey for rpm from 181.70.1.197 port 953 ssh2

Reply via email to