Changes required to work under CentOS 6
Metadata:
- Operating System: CentOS 6
- Installation method: install.sh script
- AWS CLI Version: latest
We have a legacy dependency on CentOS 6, so to make this system work under v6, the following changes are required:
-
install_configure_selinux.shscript commented out (no NIS boolean in v6) -
sed -i'' 's/AuthorizedKeysCommandUser/AuthorizedKeysCommandRunAs/g' /etc/ssh/sshd_config
Tested, OK. Happy to submit a PR if this is of interest to anyone.
Have you seen #132 ?
I have now :)
Not quite sure why there is all that extra stuff added to install_configure_selinux.sh, it works just as well without it.
I would also just be doing a simple version check in install_configure_sshd.sh and based on the test, use either AuthorizedKeysCommandUser or AuthorizedKeysCommandRunAs directive.
Do you want me to submit this in a PR?
if you like you can create a PR. But keep in mind that I expect that this project will be replaced by AWS SSM Session Manager in the near future. AWS is working on a very similar implementation using the AuthorizedKeysCommand
Interesting. However unless you can do SSH tunneling with session manager, the original approach will still be relevant.