SSH Error Talking to Repository When Hosted on GForge
症状
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(GitScmConfig.java:148)
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:441)
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:682)
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.
最終更新日 2018 年 7 月 31 日
Powered by Confluence and Scroll Viewport.