Skip to content

sshserver.pl: bump an sshd config to use its modern name - #22460

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:sshdconfigname
Closed

sshserver.pl: bump an sshd config to use its modern name#22460
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:sshdconfigname

Conversation

@vszakats

@vszakats vszakats commented Aug 2, 2026

Copy link
Copy Markdown
Member

@github-actions github-actions Bot added the script label Aug 2, 2026
@vszakats
vszakats marked this pull request as draft August 2, 2026 09:18
@vszakats
vszakats marked this pull request as ready for review August 2, 2026 09:26
@vszakats
vszakats requested a review from Copilot August 2, 2026 09:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the OpenSSH test server configuration generated by tests/sshserver.pl to use the modern sshd configuration keyword for permitting ssh-rsa keys on newer OpenSSH versions, aligning with upstream OpenSSH’s option rename.

Changes:

  • Replace PubkeyAcceptedKeyTypes with the modern PubkeyAcceptedAlgorithms for OpenSSH >= 8.8 in the generated sshd config.
  • Add an inline note indicating the legacy option name for older OpenSSH versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/sshserver.pl Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in c59b06c Aug 2, 2026
@vszakats
vszakats deleted the sshdconfigname branch August 2, 2026 09:50
Comment thread tests/sshserver.pl
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 880) && ($keyalgo eq 'rsa')) {
push @cfgarr, 'HostKeyAlgorithms +ssh-rsa';
push @cfgarr, 'PubkeyAcceptedKeyTypes +ssh-rsa';
push @cfgarr, 'PubkeyAcceptedAlgorithms +ssh-rsa'; # named PubkeyAcceptedKeyTypes in OpenSSH <8.5

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need an extra if(($sshdid =~ /OpenSSH/) && ($sshdvernum... entry to keep it working for openssh <8.5?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is already guarded for sshdvernum >= 880, so never used for <8.5.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair - it just looked odd to introduce a comment like that instead of another gate

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it to hit grep (and as a reminder) if someone is looking for the previous name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants