gpt4 book ai didi

GitLab SSH 权限被拒绝(公钥)

转载 作者:行者123 更新时间:2023-12-04 01:27:23 43 4
gpt4 key购买 nike

我已按照 Gitlab 说明设置 SSH key 。

一切都完成后,我测试我的设置

ssh -T git@gitlab.com

但后来我遇到了一个错误
git@gitlab.com: Permission denied (public key).

我也试过 ssh -Tvvv git@gitlab.com找出问题,如下。
但我不知道如何解决它,有人有想法,或者可以分享建议吗?
非常感谢!
OpenSSH_8.1p1, LibreSSL 2.7.3
.......
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/brandon/.ssh/id_rsa
debug3: no such identity: /Users/brandon/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /Users/brandon/.ssh/id_dsa
debug3: no such identity: /Users/brandon/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /Users/brandon/.ssh/id_ecdsa
debug3: no such identity: /Users/brandon/.ssh/id_ecdsa: No such file or directory
debug1: Offering public key: /Users/brandon/.ssh/id_ed25519 ED25519 SHA256:uOKjKpgEmnKqrFAS05Ccy8+B3Uw0kzSpurUpOgH0l3k
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/brandon/.ssh/id_xmss
debug3: no such identity: /Users/brandon/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
git@gitlab.com: Permission denied (publickey).

感谢您耐心阅读我的帖子。

最佳答案

谢谢,我解决了!
因为它的服务器是我们大学的所以改了之后ssh -T git@gitlab.comssh -T git@theuniversitylink.com有用。

我非常感谢所有的分享和帮助。

关于GitLab SSH 权限被拒绝(公钥),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61643135/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com