Connection blocked because server only allows public key authentication

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 20:00:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!