Reputation: 63
I'm new in Atlassian Stash, I configured a new Atlassian Stash instance. I can clone by HTTP without problems, that now I want to clone the repository by SSH for security.
I have a problem when I clone it, the server asks me SSH keys when I configured the server without keys:
Source Path: ssh://user@ip:port/project/repository.git
The Repository type is in the state "Checking source..." and a Dialog appears:
"Authentication via SSH keys failed, do you want to launch the SSH key agent (Pageant) and retry? (If you don't have an SSH key yet....)
The SSH keys are not active! and I tried to add a private key to the Pageant Key List and doesn't work.
Upvotes: 0
Views: 3057
Reputation: 1057
I had this problem, spent around 1-2 hours debugging it and here is my solution for the following assumptions:
Steps to solve:
Upvotes: 1
Reputation: 111
For me the following configuration worked. Environment: OS: Windows 8 Git Repo: Stash Solution: Tools->Options->General->SSH Client Conf -> SSH Client -> Open SSH (from putty/plink)
Upvotes: 0
Reputation: 24040
In order to clone with SSH you need to have added your public key (not the private one!) to the remote Git server, and you need to ensure that your .ssh/ directory and files are not world/group-readable or writable. Try running ssh
alone to the host/port and get that working first before trying to do anything with git
.
Upvotes: 1