MacOS and sshd versions

It is sometimes useful to determine remotely the version of MacOS being run on a machine to which one does not have access. If the machine is running sshd (i.e. has remote logins enabled), and is using the version of OpenSSH provided with the OS, this is possible. I believe the following table, mostly gathered by scraping the Internet, to be correct, but probably incomplete.

VersionNameOpenSSH
10.5Leopard4.5p1
10.5.2Leopard4.7p1
10.5.5Leopard5.1p1
10.6Snow Leopard5.2p1
10.7Lion5.6p1
10.8Mountain Lion5.9p1
10.9Mavericks6.2p1
10.10Yosemite6.2p2
10.11El Capitan6.9p1
10.12Sierra7.2p2
10.12.2Sierra7.3p1
10.12.3Sierra7.4p1
10.13High Sierra7.6p1
10.14Mojave7.8p1
10.15Catalina8.1p1
11.0Big Sur8.1p1
12.0Monterey8.6p1
13.0Ventura9.0p1

Examples of how to find the remote version number (here target.domain is running Mojave):

  $ nc -d -q 1 target.domain 22
  SSH-2.0-OpenSSH_7.8

or

  $ ssh -v target.domain
  [...]
  debug1: Remote protocol version 2.0, remote software version OpenSSH_7.8
  [...]
  ^C

or

  $ telnet target.domain 22
  Trying 192.168.9.89...
  Connected to 192.168.9.89.
  Escape character is '^]'.
  SSH-2.0-OpenSSH_7.8
  ^]
  telnet> quit