From fa517ffccc442691d8aa5f4e32348fd7e2de7f00 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Fri, 20 Sep 2024 09:33:02 -0700 Subject: [PATCH] CLI-1397: Exception on local non-RSA SSH keys (#1802) --- src/Command/Ssh/SshKeyCommandBase.php | 3 --- 1 file changed, 3 deletions(-) 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)); }