I have generated SSH keys using PuttyGen (priavte key is saved as "private.ppk" under .ssh folder). I have added the public key to my organisation Bitbucket's SSH key section. If I try to do any git operations using SourceTree, its working fine. But If I try to do anything from GitBash or from IntelliJ Idea, it gives the following error
git@bitbucket.companyname: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Used "SSH-2 RSA key" option when generating the keys.