sshserver.pl: adjust AuthorizedKeysFile2 cutoff version

To avoid in `ssh_server.log`:
```
reprocess config line 6: Deprecated option AuthorizedKeysFile2
```
with openssh 7.1

Closes #16787
This commit is contained in:
Viktor Szakats 2025-03-21 17:18:24 +01:00
parent 72b163c301
commit 7d64601a8c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -609,7 +609,7 @@ if ($sshdid =~ /OpenSSH-Windows/) {
}
push @cfgarr, "AuthorizedKeysFile $clipubkeyf_config";
if(!($sshdid =~ /OpenSSH/) || ($sshdvernum <= 730)) {
if(!($sshdid =~ /OpenSSH/) || ($sshdvernum <= 590)) {
push @cfgarr, "AuthorizedKeysFile2 $clipubkeyf_config";
}
push @cfgarr, "HostKey $hstprvkeyf_config";