Make WordPress Core

Changeset 52807 for trunk


Ignore:
Timestamp:
02/27/2022 03:00:58 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Filesystem API: Include the ssh-ed25519 public key signature algorithm as an alternative to ssh-rsa.

The ssh-rsa signature algorithm is disabled by default as of OpenSSH 8.8, which breaks SSH2 uploads in WordPress on modern systems. ssh-ed25519 is one of the suggested alternatives, supported since OpenSSH 6.5.

References:

Follow-up to [8865].

Props richybkreckel, dd32.
Fixes #52409.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r52640 r52807  
    8989            $this->options['private_key'] = $opt['private_key'];
    9090
    91             $this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa' );
     91            $this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa,ssh-ed25519' );
    9292
    9393            $this->keys = true;
Note: See TracChangeset for help on using the changeset viewer.