Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection blocked because server only allows public key authentication

Tags:

git

gitlab

I'm new to using git, and I'm trying to connect to my repo on GitLab. I keep getting the following error message:

Received disconnect from 35.231.145.151 port 22:2: Connection blocked because server only allows public key authentication. Please contact your network administrator. Disconnected from 35.231.145.151 port 22 fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I've tried to add a new public key, as well as remove the known hosts file and have gitlab added to a new one. Nothing seems to work.

Can anyone please help me with this?

Thank you in advance!

like image 579
Jerome Papalie Avatar asked Oct 21 '25 13:10

Jerome Papalie


1 Answers

Seems that the error happened because of SSL/SSH inspection on the firewall, please check with your network administrator to fix it.

like image 72
Maor Sasson Avatar answered Oct 23 '25 05:10

Maor Sasson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!