gh-gei icon indicating copy to clipboard operation
gh-gei copied to clipboard

Add support for SSH private keys with a passphrase when running a BBS migration

Open timrogers opened this issue 3 years ago • 2 comments

When performing a migration from Bitbucket Server, an SSH username and private key are required for connecting to the server and downloading the migration archive.

If your SSH private key is protected with a passphrase, an error is triggered and it is not possible to continue with your migration:

[16:26] [ERROR] Renci.SshNet.Common.SshPassPhraseNullOrEmptyException: Private key is encrypted but passphrase is empty.

We should add support for using private keys with a passphrase.

timrogers avatar Dec 02 '22 18:12 timrogers

Can't users load their key into ssh-agent? Does this solution not work?

robandpdx avatar Dec 05 '22 16:12 robandpdx

I don't believe that using an SSH agent is supported - my SSH agent didn't kick in - but that would, in my view, be a great way to fulfil the intent of this issue.

timrogers avatar Dec 05 '22 16:12 timrogers