GitLab SSH要求输入密码(未知密码)身份验证失败

时间:2019-02-22 18:30:46

标签: git ssh gitlab

不是重复的帖子(我已经搜索了主题,而且都没有解决密码问题)

这是可以正常工作的设置,SSH证书运行正常。几个月没有使用过,没有通过ssh无法通过身份验证,服务器不断询问git密码...我尝试了GitLab中设置的每个PW和我的Mac上的admin pw,但没有任何效果。我已经在MacBook上发布了新证书,如下所示:

is_owner = self._is_owner(...)

ssh-keygen -o -f ~/.ssh/id_rsa

我第一次获得预期的以下结果(我已清除〜/ .ssh`中的pbcopy < ~/.ssh/id_rsa.pub文件):

known_hosts

当我使用The authenticity of host 'example.com (35.231.145.151)' can't be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'example.com' (ECDSA) to the list of known hosts. 测试ssh连接时,会得到以下结果:

ssh -vT git@gitlab.com

1 个答案:

答案 0 :(得分:0)

问题在客户端上的密钥已损坏-在Gitlab服务器上创建了新密钥/证书并替换了公共密钥。

相关问题