Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

os: centos 6

currently i have selinux linux enabled (enforcing) , disabling it makes ssh passwordless login work.

i have set setsebool for ssh the following settings

[root@server]# /usr/sbin/getsebool -a | grep ssh
allow_ssh_keysign --> on
sftpd_write_ssh_home --> off
ssh_sysadm_login --> on

and also set the users home directory to

chcon system_u:object_r:ssh_home_t:s0 .ssh/

but the ssh passwordless login does not work..

any ideas..

share|improve this question
up vote 0 down vote accepted

Restore the default SELinux contexts for ~/.ssh folder:

restorecon -R -v /path/to/.ssh

and try again.

share|improve this answer
    
thanks quanta worked... – krisdigitx Sep 7 '11 at 16:18

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.