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

Changes required to work under CentOS 6

Open ab77 opened this issue 7 years ago • 4 comments

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

ab77 avatar Jan 15 '19 16:01 ab77

Have you seen #132 ?

michaelwittig avatar Jan 16 '19 15:01 michaelwittig

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?

ab77 avatar Jan 16 '19 21:01 ab77

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

michaelwittig avatar Jan 17 '19 15:01 michaelwittig

Interesting. However unless you can do SSH tunneling with session manager, the original approach will still be relevant.

ab77 avatar Jan 17 '19 16:01 ab77