Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

add repo on windows 8

Hello, how can I fix the problem (for generated key too) on windows 8:

Error testing connection.
Error talking to repository:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: key
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

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(NativeMethodAccessorImpl.java:57)

Connection failed.

2 answers

Hi Sergey,

Do you have cygwin installed on your Windows 8 machine? Basically you have to locate this 'key' file and change it's permissions to one that allows only you to access it.

chmod 0600 /foo/bar/key

The above command should do the trick.

Best regards,

Felipe Alencastro

I have cygwin; I have tried, but it did not help.

And why when I click 'Test connection', seems, fisheye reload key under other generated name? And if I use 'Generate key pair for ssh', how can i define name of generated private key?

Commands continue to return with the exception 'Unable to clone remote repo..':

git clone --bare -v ssh://git@github.com:myrepo.git clone

git clone --bare -v git@github.com:myrepo.git clone

0 votes
lpater Atlassian Team May 19, 2014

Hi Sergey,

What version of FishEye are you using? There was a change in 3.3.1 that might be related - https://jira.atlassian.com/browse/FE-5084(and https://jira.atlassian.com/browse/FE-4984).

Before 3.3.1 we tried to set permissions on the key files. As it only worked in some cases, and there is no reliable api to do that on Windows we stopped trying to do that, relying on the administrator to set up the permissions for the FISHEYE_INST directory appropriately.

The error you're getting seems to come from your ssh client expecting the permissions for the keys to be more restrictive. Please check the permissions using cygwins ls command, and make sure they haven't been changed by FishEye if you're using a version before 3.3.1.

You can't define your own key names for generated ssh keys - any reason you would need that?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

97 views 1 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you