New blog post: CentOS SSH with SELinux
This commit is contained in:
parent
5f95ff1822
commit
8e4e2f36fb
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: "Enabling public key authentication in CentOS"
|
||||
date: 2015-02-13 20:46:06
|
||||
lang: en
|
||||
categories: centos ssh authorized_keys selinux
|
||||
---
|
||||
|
||||
If you are wondering why CentOS is ignoring your
|
||||
`~/.ssh/authorized_keys` file for a user you created with an
|
||||
interactive script or e.g. using Puppet – check that you restored the
|
||||
SELinux context in the users home directory:
|
||||
|
||||
```bash
|
||||
$ restorecon -Rv /home/user/.ssh
|
||||
```
|
Loading…
Reference in New Issue