Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to setup publickey based authenitcation for 2 different boxes. One RHEL another on e is CentOS. I am having same issue with both where ssh fails and falls back to password based authentication. Error that seems to be causing this is quite obscure:

debug1: Unspecified GSS failure.  Minor code may provide more information

Credentials cache file '/tmp/krb5cc_1000' not found

Both boxes are completely unrelated. I have my public key in .ssh/authorized_keys file on both boxes, all permissions are checked and good(700 for .ssh and 600 for internals) I have bunch of other servers that are running on various flavors(Gentoo, Fedora, FreeBSD etc.) and publickey ssh works just fine, but CentOS and RHEL giving me this for some reason :(

Anyone experienced this before? I am not even sure how to further analyze this issue :(

share|improve this question

2 Answers 2

up vote 2 down vote accepted

The error that you're getting is related to Kerberos Authentication.

I'm going to assume you're NOT using Kerberos and you have your keys setup properly.

Try adding/changing these in your ssh config files

sshd_config

GSSAPIAuthentication no

GSSAPICleanupCredentials no

KerberosAuthentication no

KerberosOrLocalPasswd no

KerberosTicketCleanup no

ssh_config

RSAAuthentication yes

PasswordAuthentication yes

HostbasedAuthentication no

GSSAPIAuthentication no

GSSAPIDelegateCredentials no

share|improve this answer

SELinux permissions prevented the SSH service from accessing the authorized_keys.

Use restorecon -r /root/.ssh to restore permissions, or turn off SELinux completely.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.