I have created a new ssh public and private keys using puttygen. copied public key in the stash server, and privatekey in Pageant in my computer. I am able to clone the git repositories from sourcetree. Now I am trying to use git clone command from sourcetree terminal which is not allowing to use the same keys created. I copied the same public key which is earlier copied in stash to known_hosts also.
I get an error saying:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Can you suggest how I can be able to clone or pull repository through sourcetree terminal.