由于服务器仅允许公共密钥身份验证,所以连接被阻止 [英] Connection blocked because server only allows public key authentication

查看:72
本文介绍了由于服务器仅允许公共密钥身份验证,所以连接被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是刚接触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:

收到从35.231.145.151端口22:2断开的连接:连接被阻止因为服务器仅允许公共密钥身份验证.请联系您的网络管理员.与35.231.145.151端口22断开连接致命的:无法从远程存储库读取.

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.

我试图添加一个新的公共密钥,以及删除已知的主机文件,并将gitlab添加到一个新的公共密钥中.似乎没有任何作用.

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.

有人可以帮我吗?

提前谢谢!

推荐答案

该错误似乎是由于对防火墙进行SSL/SSH检查而发生的,请与您的网络管理员联系以进行修复.

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

这篇关于由于服务器仅允许公共密钥身份验证,所以连接被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆