Don't think its the cause but your authorized key files should not be world
readable. Is sshd configured to accept key based login?
2009/6/9 Greg McRandal <mcrandal at maths.tcd.ie>
> Hi,
>> I'm having a problem using scponlyc and an authorized_keys. I have
> created a home dir and a writeable dir for the user. I have created a
> .ssh dir in both, both owned by the user, along with a file
> authorized_keys like this:
>> $ ll -a ~greg/..
> drwx------ 2 greg greg 4096 2009-06-09 11:41 .ssh
> $ ll -a ~greg/../.ssh
> -rw-r--r-- 1 greg greg 604 2009-06-09 11:41 authorized_keys
> and
> $ ll -a ~greg/
> drwx------ 2 greg greg 4096 2009-06-09 11:35 .ssh
> $ ll -a ~greg/.ssh
> -rw-r--r-- 1 greg greg 603 2009-06-09 11:35 authorized_keys
>> However when I try to log on as this user I am asked for my login
> password and not the one in authorized_keys.
>> sftp -v gives this:
> debug1: Unspecified GSS failure. Minor code may provide more
> information
> No credentials cache found
> debug1: Unspecified GSS failure. Minor code may provide more
> information
> No credentials cache found
> debug1: Unspecified GSS failure. Minor code may provide more
> information
> debug1: Next authentication method: publickey
> debug1: Trying private key: /home/greg/.ssh/id_rsa
> debug1: Offering public key: /home/greg/.ssh/id_dsa
> debug1: Authentications that can continue:
> publickey,gssapi-with-mic,password
> debug1: Next authentication method: password
>> Am I doing something wrong? Or does anyone have any pointers?
>> Thanks,
>> Greg
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!