Upsource
 

Error: "Test VCS connection failed. Error while loading an uploaded key. Invalid privatekey"

Last modified: 02 April 2021

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