Failed publickey authentication

From: jfw@radiDELMEx.net
Date: 12/28/01


From: jfw@radiDELMEx.net
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
   do
        ssh-keygen -t $i
   done

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

   $HOME/.ssh/identity.pub
   $HOME/.ssh/id_dsa.pub
   $HOME/.ssh/id_rsa.pub

On server:

3. Put public keys in the right place:

   mkdir $HOME/.ssh
   cat /tmp/identity.pub >> $HOME/.ssh/authorized_keys
   cat /tmp/id_dsa.pub >> $HOME/.ssh/authorized_keys2
   cat /tmp/id_rsa.pub >> $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: ...
    (SSH)
  • 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* ...
    (comp.security.ssh)