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?

Relevant Pages

  • Re: Using RSA key _and_ password
    ... OpenSSH should be able to do this. ... "As a second authentication method, ssh supports RSA based ... The scheme is based on public-key cryptography: ...
  • Re: OSX (OpenSSH) to GNU (SSH2) server authentication problems
    ... MM> keys in different formats? ... public and private key files for a single key are different, ... OpenSSH versions 2.9.9 have dispensed with the "2"-suffixed files, ... and again slipped into talking about public-key *user* ...