gitlab 不能通过 https 来 clone 只能 ssh ,大家有遇到过吗?
1 hackingwu OP 启用了 2FA |
![]() | 2 orFish 158 天前 报错信息呢。。 |
4 ruaRobot 158 天前 ![]() 我只遇到过只能通过 http 来 clone 不能使用 ssh 的 |
![]() | 5 MoYi123 158 天前 遇到过, 没设置账号密码就不让用 http |
![]() | 6 Goalonez 158 天前 via iPhone 有 2fa 本来就不能 http 拉吧 |
![]() | 7 konakona   158 天前 不喂我报错信息就希望我回答你吗? 可恶,网友现在待遇比 deepseek 还差…… |
![]() | 8 KagurazakaNyaa 158 天前 有 2fa 还想通过 https 方式 clone ,那你得设置 access token |
![]() | 9 orFish 158 天前 |
10 hackingwu OP @XiLingHost 我设置了,为啥还不行呢 |
![]() | 11 MFWT 158 天前 在没有错误日志的情况下诊断问题,无异于闭眼开车 |
12 Rickkkkkkk 158 天前 错误日志粘到 ai 里,一般都能得到答案 |
![]() | 13 KagurazakaNyaa 158 天前 @hackingwu 你看了文档吗,access token 也是需要用户名的 |
![]() | 15 KagurazakaNyaa 158 天前 |
16 mark2025 158 天前 gitlab 后台可以设置仅 ssh 交互 |
18 nevermoreluo 157 天前 给下报错不行嘛。。。。 只好猜了,这回我猜证书错误,不要想当然的以为浏览器证书正常,git 也能正常解析 `git config --global http.sslverify false` 试试 https://community.letsencrypt.org/t/production-chain-changes/150739 |
20 liuidetmks 157 天前 @just1 ssh over 443 |
21 ACCI 157 天前 |
22 youwh 157 天前 是不是更新了 17.11.1 ,前天更新之后也遇到了。 |
![]() | 23 lulaolu 157 天前 文档有写的: https://docs.gitlab.com/user/profile/account/two_factor_authentication/#use-personal-access-tokens-with-two-factor-authentication “When 2FA is enabled, you can’t use your password to authenticate with Git over HTTPS or the GitLab API. You can use a personal access token instead.” |
24 sampeng 157 天前 因为。。就是不能用帐号密码拉啊。。。。不然 gitlab 也就太"安全"了 |
25 zzzmode 154 天前 使用 443 端口呢 Host gitlab.com Hostname altssh.gitlab.com User git Port 443 IdentityFile ~/.ssh/id_gitlab |