I am trying to clone a git repository. I am able to do it successfully from the netbeans IDE but if I try to use the command line to clone the repository with the same ssh private key, I am getting the following error : Cloning into 'name'... Enter passphrase for key '/home/user/.ssh/id_rsa': Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
The repository exixts as I am able to clone it from Netbeans.I am using the same private key id_rsa. I am working on ubuntu 14.04.
Has anyone faced this problem. I am not able to figure out the issue.