Closed than0s closed 3 years ago
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 '
Nice! I will add this when I get a chance. A little caught up with a new job. Thanks!
Adding this. Thanks!
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 '