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

How to find any duplicate parameter in /etc/ssh/sshd_config #38

Closed
than0s opened this issue Jun 6, 2019 · 2 comments
Closed

How to find any duplicate parameter in /etc/ssh/sshd_config #38

than0s opened this issue Jun 6, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@than0s
Copy link

than0s commented Jun 6, 2019

On step 2 of Secure /etc/ssh/sshd_config, a quick and dirty way to find any duplicate parameter is with:

awk '{print $1}' /etc/ssh/sshd_config | sort | uniq -c | grep -v ' 1 '

@imthenachoman
Copy link
Owner

imthenachoman commented Jun 7, 2019

Nice! I will add this when I get a chance. A little caught up with a new job. Thanks!

@imthenachoman imthenachoman self-assigned this Jun 7, 2019
@imthenachoman imthenachoman added the enhancement New feature or request label Jun 7, 2019
@imthenachoman
Copy link
Owner

Adding this. Thanks!

imthenachoman added a commit that referenced this issue Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants