OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: Arszilla on January 22, 2023, 01:37:22 pm

Title: Modifying SSH Service
Post by: Arszilla on January 22, 2023, 01:37:22 pm
Hi there,

I am trying to modify my OPNsense's SSH service config (sshd_config). I tried editing /usr/local/etc/ssh/sshd_config, but upon saving, it gets overwritten/reset by OPNsense. I am just trying to increase MaxAuthTries to 10 (instead of 6), as I use my password manager's SSH agent, which tries multiple SSH keys before getting to the correct one.

I tried editing /etc/rc.conf and adding the following line: sshd_flags="-o MaxAuthTries=10", but this did not seem to have worked/taken effect.

Does anyone know how can I increase the MaxAuthTries?