无法使用 SSH 将 IntelliJ-IDEA 连接到 GitLab [英] Can't connect IntelliJ-IDEA to GitLab with SSH

查看:61
本文介绍了无法使用 SSH 将 IntelliJ-IDEA 连接到 GitLab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的 GitLab 存储库与 IntelliJ-IDEA 连接,但它仍然无法连接到存储库.我已经尝试了接下来的事情:

  • 我已正确安装 msysgit
  • 生成 SSH 密钥(

    然后 IntelliJ IDEA 中的测试将通过,您将能够对每个存储库使用 ssh 或 https...

    更新:GitLab UI 已更改,因此在 https://gitlab.com/profile/personal_access_tokens

    I am trying to connect my GitLab repository with IntelliJ-IDEA, and it still cant connect to the repo. I have tried the next things:

    • I have msysgit installed correctly
    • Generated the SSH keys (https://help.github.com/articles/generating-ssh-keys/)
    • Added the key on GitLab keys
    • Define the enviroment variables HOME USERPROFILE point to C:Userssebastian.garces.ssh. %USERPROFILE$/.ssh %HOME$/.ssh
    • In IntelliJ changed SSH executable to Native

    I did a lot of things from this links:

    And many other google searchs

    I dont know what else to do nothing is working.

    UPDATE: When i try to Clone the repository and press the Test Button it loads and loads and nothing happen after a while it give me this error: repository test has failed

    解决方案

    Try to install plugin: Settings -> Plugins -> Browse repositories -> type GitLab Projects Plugin minimum version 1.3.0

    and go to Settings -> Other Settings -> GitLab Settings

    Fill GitLab Server Url with https://gitlab.com/ (ensure slash at the end) and

    GitLab API Key with string (private token which is shown as the first thing on: https://gitlab.com/profile/account)

    And then the test in IntelliJ IDEA will pass and you will be able to use ssh or https for each repository...

    UPDATE: GitLab UI changed, so private tokens are created at https://gitlab.com/profile/personal_access_tokens

    这篇关于无法使用 SSH 将 IntelliJ-IDEA 连接到 GitLab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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