I have googled and found many solutions but none work for me.
I am trying to clone from one machine by connecting to the remote server which is in the LAN network.
I tried all of that commands and none works for me, but what works was change the git_url to http instead ssh
if is clone command do :
git clone
else if you are pulling on existing repo, do it with
git remote set-url origin
hope this help someone!