Error: "Test VCS connection failed. Error while loading an uploaded key. Invalid privatekey"
When creating a new project in Upsource, you get to choose one of the following authentication methods to access your VCS:
- Anonymous
- Password
- SSH key
If you select SSH key, you should also provide a private key and passphrase (if any). After that, while testing the connection, you might get the following error:
Test VCS connection failed. List remote refs failed: com.jcraft.jsch.JSchException: Error while loading an uploaded key 'the-key': invalid privatekey
Solution
Most likely your public/private key pair was generated via PuTTYgen. Upsource doesn't work with the PuTTY-format private keys, so you would need to convert it to the OpenSSH format. To do that, please perform the following steps:
Open PuttyGen
Click
Go to
and export your private keyPaste the converted private key into Upsource
Last modified: 28 February 2018