Atlassian Stash - Permission Denied (publickey)
I am in the process of installing Atlassian Stash for my workspace. I ran into this problem that I cannot fix. Please note that this is done when installing Windows 7 64bits.
When you install SSH keys, I followed the Stash Guide on how to create and install them in your account. However, the problem encountered here is not actually literal as it does not seem to accept the key. (Both users created in Stash are admins and have admin rights to all repositories.)
When running a simple clone command, I get this error:
$ git clone ssh: // git @ localhost : 7999 / test / test.git Cloning into 'test' ... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I followed the steps outlined in the Documentation area of โโthe Atlassian website, but I still can't get it to work.
Git operations fail - access denied - publish
$ ssh -p 7999 -I ~ / .ssh / id_rsa -vT git @ localhost OpenSSH_6.6.1, OpenSSL 1.0.1m 19 Mar 2015 debug1: Connecting to localhost [127.0.0.1] port 7999. debug1: Connection established. dlopen /c/Users/Webit-Alex/.ssh/id_rsa failed: dlopen: Win32 error 126 debug1: identity file /c/Users/Webit-Alex/.ssh/id_rsa type 1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_rsa-cert type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_dsa type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_dsa-cert type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_ecdsa type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_ecdsa-cert type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_ed25519 type -1 debug1: identity file /c/Users/Webit-Alex/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 debug1: Remote protocol version 2.0, remote software version SSHD-CORE-0.14.0 debug1: no match: SSHD-CORE-0.14.0 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-> client aes128-ctr hmac-md5 none debug1: kex: client-> server aes128-ctr hmac-md5 none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: RSA 0e: 58: 0e: af: a8: a1: 35: 5b: 5e: 3c: ac: 8a: 50: af: 13: a9 debug1: Host '[localhost]: 7999' is known and matches the RSA host key. debug1: Found key in /c/Users/Webit-Alex/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /c/Users/Webit-Alex/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /c/Users/Webit-Alex/.ssh/id_dsa debug1: Trying private key: /c/Users/Webit-Alex/.ssh/id_ecdsa debug1: Trying private key: /c/Users/Webit-Alex/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey).
Does anyone have a solution or would like to help get Stash to work properly?
source to share
I had the same problem, but I am trying to find the remote host instead of the local one. The strange thing was that everything had been good the night before. I got the same errors as the original poster. Finally, I deleted all my SSH keys on the stash server and re-added my previous id_rsa.pub key. I tried again and everything worked out great. Either my SSH key was corrupted on the wallet server or the stash server failed to load my key - re-adding is fixed anyway.
source to share