1
0
Fork 0
bascht.com/content/tech/2015-02-13-public-key-authe...

16 lines
412 B
Markdown
Raw Normal View History

2016-03-06 19:14:08 +01:00
---
title: "Enabling public key authentication in CentOS"
date: 2015-02-13
lang: en
tags: [centos, ssh, authorized_keys, selinux]
2016-03-06 19:14:08 +01:00
---
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:
2016-03-07 13:41:08 +01:00
``` bash
2016-03-06 19:14:08 +01:00
$ restorecon -Rv /home/user/.ssh
```