Failed publickey authentication

Date: 12/28/01

Date: 28 Dec 2001 22:17:54 GMT

I'm trying to set up public-key authentication on a SCO OpenServer but
the OpenSSH 3.0.1'sshd -d' output keeps gives me:

    Failed publickey for USER from XXX.YYY.WWW.ZZZ port 1818 ssh2

I can password in with no problem. I *think* I did all the steps right:

On client:

1. su USER

   for i in rsa1 dsa rsa
        ssh-keygen -t $i

2. FTP the 3 public keys into the server's /tmp directory:


On server:

3. Put public keys in the right place:

   mkdir $HOME/.ssh
   cat /tmp/ >> $HOME/.ssh/authorized_keys
   cat /tmp/ >> $HOME/.ssh/authorized_keys2
   cat /tmp/ >> $HOME/.ssh/authorized_keys2

4. Give everything the right permissions:

   chmod 755 $HOME
   chmod 755 $HOME/.ssh
   chmod 644 $HOME/.ssh/authorized_keys
   chmod 644 $HOME/.ssh/authorized_keys2
   chown -R USER:sys $HOME

Am I missing a step?