Closed artburkart closed 1 year ago
Hi @artburkart
Does this PR also includes #31 ?
I have no idea about SELinux, so let's see if someone watches this and can review it...
I also just noticed https://github.com/widdix/aws-ec2-ssh/issues/97#issuecomment-358658386, which would mean I need to update the spec before this could go live.
I'm not sure whether there'd be any interest in adding CentOS 6 support, but this commit introduces an alternative method of enabling
AuthorizedKeysCommand
without disabling SELinux entirely that acts as a fallback whennis_enabled
is not a valid variable to set.Additionally, since you can't upgrade openssh-server to be
> 6.1
on CentOS 6, these changes useAuthorizedKeysCommandRunAs
rather thanAuthorizedKeysCommandUser
. The way I determined whetherAuthorizedKeysCommandUser
was available bygrep
ing thesshd
binary for the string. For some reason, I can't do the same forAuthorizedKeysCommandRunAs
. I don't know where it's hiding.Let me know what you think.