aws-ec2-ssh icon indicating copy to clipboard operation
aws-ec2-ssh copied to clipboard

Enhancement/centos6 support

Open artburkart opened this issue 7 years ago • 2 comments

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 when nis_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 use AuthorizedKeysCommandRunAs rather than AuthorizedKeysCommandUser. The way I determined whether AuthorizedKeysCommandUser was available by greping the sshd binary for the string. For some reason, I can't do the same for AuthorizedKeysCommandRunAs. I don't know where it's hiding.

Let me know what you think.

artburkart avatar Jun 22 '18 19:06 artburkart

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...

michaelwittig avatar Jun 26 '18 11:06 michaelwittig

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.

artburkart avatar Jun 27 '18 21:06 artburkart