[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh without password



On Sun, Aug 05, 2001, Oleg Goldshmidt wrote about "ssh without password":
> I am puzzled by the following: I have RH7.1 computers with
> openssh-2.5.2p2-5. I generated keys (both RSA and DSA) as a user
> on both, and exchanged them (~/.ssh/authorized_keys{,2} etc),
> with empty passphrases.
> 
> I expect to be able to log on from one computer to another
> without being prompted for a password (so says the man page), but I am
> still prompted.  Toggling PasswordAuthentication in
> /etc/ssh/ssh{d,}_config does not affect things. /etc/ssh/shosts.equiv
> doesn't help either. Can anyone enlighten me?

Try using "ssh -v" - it prints the steps it tries, and why it asks for a
password instead of using the RSA keys.

My guess is that you probably have wrong permissions on your files: I
think you must make sure that your authorized_keys or autorized_keys2
file is not world readable.
> 
> To clarify: authentication works fine, I log on in both directions.
> It's the password prompt that annoys me.

I don't understand: is it just a useless password prompt (i.e., you type
"hello" and you can still log in), or is it simply ignoring your RSA keys
and requesting the correct password?

-- 
Nadav Har'El                        |          Sunday, Aug  5 2001, 16 Av 5761
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |A fine is a tax for doing wrong. A tax is
http://nadav.harel.org.il           |a fine for doing well.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il