nfs - SELinux prevents ssh with RSA key -


i forgot had enabled selinux on 1 of web servers. when went log host user account , ssh key, getting permission denied errors.

[timothydunphy@jec206429674lm:~] #ssh bluethundr@web1.somedomain.com permission denied (publickey,gssapi-keyex,gssapi-with-mic). 

hmmm... consoled server , able login. tailed audit logs, , saw:

type=user_login msg=audit(1429981690.809:394593): pid=17074 uid=0     auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023     msg='op=login acct="bluethundr" exe="/usr/sbin/sshd" hostname=? addr=47.18.111.100 terminal=ssh res=failed' 

in googling answer got advice run command:

[root@web1:~] #restorecon -r -v /home/bluethundr/.ssh [root@web1:~] # 

but when go login again, after doing that, same result. permission denied , same error in logs.

the other thing can think of home directory user mounted nfs share. might there selinux incantation can use allow ssh home directory on nfs share?

or maybe i'm missing else?

thanks, tim

if restorecon didn't work, try audit2why and/or audit2allow find policy being violated. that's not apply policy change suggestions generated, lead information resolving issue.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -