SSH Error Talking to Repository When Hosted on GForge
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
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.
この内容はお役に立ちましたか?