We have been working with git for years, two months ago we noticed that were not been able to use the git commands anymore:
git pull
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
In the beginning we tought the problem were the credentials, after many tests we realized that it must be something in the firewall, because:
We tested different git versions: 2.41.0.windows.3, 2.32.0.windows.2, 2.33.0.windows.2 and we got the same results.
We don't know what further tests can be done in order to find the problem and can't find any log entry.
Any suggestions would be highly appreciated
Solved! Go to Solution.
Thanks for all for the answers, did not reply because I was not able to login to the forum, got 401.
Yesterday we had been able to fix it, the problem was not the firewall, but a custom Home Folder set in Active Directory. Because of this, the ssh directory was not seen by git and so no key could be sent on the request. Removing it from the active directory and rebooting the pc solved the problem.
Does the relevant firewall policy have deep-inspection applied (cert- or full-)? If yes, check if it has "SSH deep scan" enabled. If yes, try disabling it.
Please check this KB article and try to identify why the firewall is blocking the traffic. Specially debug flow.
Thanks for all for the answers, did not reply because I was not able to login to the forum, got 401.
Yesterday we had been able to fix it, the problem was not the firewall, but a custom Home Folder set in Active Directory. Because of this, the ssh directory was not seen by git and so no key could be sent on the request. Removing it from the active directory and rebooting the pc solved the problem.
Great!!
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.