Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 7.3 error: SSH Cipher remediation broke after "Evaluate $sed_command" commit #2204

Closed
VadimDor opened this issue Aug 3, 2017 · 0 comments

Comments

@VadimDor
Copy link
Contributor

VadimDor commented Aug 3, 2017

RHEL 7.3 error: SSH Cipher remediation broke after "Evaluate $sed_command" commit ad40f51

eval sed -i 's/^Ciphers./Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc/g' /etc/ssh/sshd_config
evaluates into (shown set +x output)
++ sed -i 's/^Ciphers./Ciphers' aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc/g /etc/ssh/sshd_config
which fails with a message:
sed: -e expression #1, char 20: unterminated `s' command

Without eval works fine.

I ran into this error running the latest scap_security_guide remediation with
centos-release-7-3.1611.el7.centos.x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant