[SATLUG] SSH public key authentication failure

Bruce Dubbs bdubbs at swbell.net
Sun Aug 14 00:29:48 CDT 2005


Roy Pittman wrote:
> I am using SSH and SCP on my home network with good results except that
> I have to give passwords to log in to my fileserver (Redhat9 @runlevel3)
>  from my workstation (FC4).
> I have generated fresh DSA and RSA keypairs and have SCP'd them to
> server:/home/roy/.ssh/authorized_keys2 which is -rw------- .

Try using /home/roy/.ssh/authorized_keys instead of the -2 variant.
that went away some time ago, but can be specified in the sshd_config
file if you want.

You do not need the RSA key.

Also, you are not specific as to exactly what key you transferred.  It
should be id_dsa.pub.

  The
> directory is drwx------ and I am the owner of both the it and
> authorized_keys.

Good.

> I have put
> 
> DSAAuthentication yes
> 
> lines in server:/etc/ssh/ssh_config and sshd_config files.

My ssh_config has *every* line commented out.  The defaults are
generally fine.

My sshd_config has only:
Port 22
Protocol 2
ListenAddress <deleted>

SyslogFacility AUTHPRIV
AuthorizedKeysFile      .ssh/authorized_keys
X11Forwarding yes
Subsystem       sftp    /usr/libexec/openssh/sftp-server

  -- Bruce




More information about the SATLUG mailing list