Date: Wed, 08 Sep 2021 01:42:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248923 --- Comment #2 from Ed Maste <firstname.lastname@example.org> --- As far as I can tell your example functions as expected: you cannot connect with keys in .ssh/authorized_keys2, and can with keys in .ssh/authorized_keys. Again, from sshd(8): > AuthorizedKeysFile specifies the files containing public keys for public > key authentication; if this option is not specified, the default is > ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. But the option *is* specified in the default /etc/sshd_config file: # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 # but this is overridden so installations will only check .ssh/authorized_keys AuthorizedKeysFile .ssh/authorized_keys If have no AuthorizedKeysFile setting in your sshd configuration the compiled-in default is ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. If you *do* have an AuthorizedKeysFile in your sshd configuration (/etc/ssh/sshd_config) that takes precedence over the default compiled into sshd. -- You are receiving this mail because: You are the assignee for the bug.