Secure Mail Reading on Mac OS X
Subject:   a little addendum
Date:   2004-05-11 05:46:10
From:   chanezon1
Thanks for this excellent article.
It did not work for me initially and after 2 hours of debugging I finally found out why.
The problem was on the server side, red Hat 9.
I bumped into the problem described in the Openssh FAQ
3.14 - I copied my public key to authorized_keys but public-key authentication still doesn't work.

Following the FAQ remedy solved the problem. I hope this will avoid trouble for others ;-)

Typically this is caused by the file permissions on $HOME, $HOME/.ssh or $HOME/.ssh/authorized_keys being more permissive than sshd allows by default.

In this case, it can be solved by executing the following on the server.

$ chmod go-w $HOME $HOME/.ssh
$ chmod 600 $HOME/.ssh/authorized_keys

If this is not possible for some reason, an alternative is to set StrictModes no in sshd_config, however this is not recommended.