Hi,
I'm trying to establish secure connection between Crucible (standalone instance) and GitHub repository using ssh key. When repository was configured to use https connection all was working just fine, but when I switch git authentication to ssh key, test of the connectivity returns error:
Error testing connection.
Error talking to repository:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
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.GeneratedMethodAccessor8112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Connection failed.
Steps that was made:
- Existing repository was chosen (test_repo).
- In tab SCM Details:
Repository location changed from 'https://username@github.com/company/test_repo.git'
to 'ssh://username@github.com/company/test_repo.git'.
- Git authentication style changed from 'Password for http(s)' to 'Generate key par for ssh'.
- Ssh keys was generated.
- Public key was copied in to Personal settings -> SSH keys on GitHub account.
- Checkout URL was changed from 'https://username/@github.com/company/test_repo.git' to 'ssh://username@github.com/company/test_repo.git'
- Connections was tested.
As I mentioned earlier, test connection returns error. My question is this type authorizations is possible, and if it is, is there any description or guide how to do that? Where private key that was generated by Crucible are stored? Ho I can test manually connectivity?