Bug 248439 - man page for ssh - authorized_keys2 no longer supported
Summary: man page for ssh - authorized_keys2 no longer supported
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2020-08-02 21:37 UTC by doug
Modified: 2020-09-08 01:20 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description doug 2020-08-02 21:37:26 UTC
The openssh site says this was depreciated with version 3. In FreeBSD this required for much longer. At lease by 12.0, OpenSSH_7.8p1, OpenSSL 1.1.1b-freebsd authorized_keys2 will not work. No error message is given.

man page: if this option	is not specified, the default is
     ~/.ssh/authorized_keys and	~/.ssh/authorized_keys2. 

authorized_keys2 should be removed.
Comment 1 Ed Maste freebsd_committer 2020-08-25 18:10:47 UTC
The man page is correct - if not set by a config file the default is to check both .ssh/authorized_keys and .ssh/authorized_keys2.

The stock sshd_config (upstream and in FreeBSD) contains:

# 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