问题
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!
来源:https://stackoverflow.com/questions/59558044/connection-blocked-because-server-only-allows-public-key-authentication