diff --git a/src/Command/Ssh/SshKeyCommandBase.php b/src/Command/Ssh/SshKeyCommandBase.php index 2ea779166..27398b5d5 100644 --- a/src/Command/Ssh/SshKeyCommandBase.php +++ b/src/Command/Ssh/SshKeyCommandBase.php @@ -420,9 +420,6 @@ protected function uploadSshKey(string $label, string $publicKey): void protected static function getFingerprint(mixed $sshPublicKey): string { - if (!str_starts_with($sshPublicKey, 'ssh-rsa ')) { - throw new AcquiaCliException('SSH keys must start with "ssh-rsa ".'); - } $content = explode(' ', $sshPublicKey, 3); return base64_encode(hash('sha256', base64_decode($content[1]), true)); }