I have the following and i need to clone the repository in either windows terminal command prompt or linux.
I suggest that you follow those steps:
$> ls -al ~/.ssh
Do you see any files named id_rsa
and id_rsa.pub
?
If yes go to Step 3
If no, you need to generate them
$> ssh-keygen -t rsa -b 4096 -C "yourEmail"
Add your SSH key to the ssh-agent
$> eval "$(ssh-agent -s)"
$> ssh-add ~/.ssh/id_rsa
Get your public key
$> cat ~/.ssh/id_rsa.pub
Go to your GIT project -> Settings -> SSH keys
Then past the content of your public key in SSH keys
This is an alternative solution when you can't set keys on your Git account
$> sudo nano ~/.ssh/config
Then change this line
IdentityFile
$> git clone git@xxxxx.com:xxx/xxx/git