SSH Error Talking to Repository When Hosted on GForge

Still need help?

The Atlassian Community is here for you.

Ask the community


Fisheye & Crucible are unable to authenticate over SSH using key-based authentication when the repository is hosted on GForge. The below message will be displayed after clicking the Test Connection in the UI.

Error testing connection.
Error talking to repository:
at com.atlassian.fisheye.git.GitScmConfig.testConnection(
at com.cenqua.fisheye.RepositoryConfig.testConnection(
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
Connection failed.


This is caused by GForge not working with public keys that have a comment. A comment in the public key is anything after the == at the end of the file. An example public SSH key with a comment is below.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3eahbupC1asdfasdfTioBnRFwiO39OpsdmN9BaFDSDj5OAWGZ9Qyn327Bfu1K5rFdDsPOit69FLPaQDFSADfMJkYnBIDDOrue/GQXOIJnkiuUH9ls67uPdK7ca2Q2J2MNJUJSbPZA7FwrOiejnL6gLOT6V2hTy6Hjl8L7s3KrFJgZnKX8YcujErHHqBw8d9PIak9PfafcvUBwbkRrYHun967lbJ+HJpaEuXkSWuRkWyGpBAaOMx1tQVAbwNLbPJib/i+QlQIf9DR6GQRIVQX8NJB/KH30cyfg1YoVhmCVb5xgh8irBsJkRux83owC9==comment text here


  • Remove the comment text from the public key that is uploaded to GForge.

Last modified on Jul 31, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.