jetBrains intelliJ IDEA: protocol error: bad line length character: Acti

jetBrains intelliJ IDEA: protocol error: bad line length character: Acti

在使用 jetBrains IDE.

的 git 插件时敬酒 protocol error: bad line length character: Acti

这个问题刚刚发生在 JetBrains IDE 中,我在使用 git bash 克隆、推送、拉取时没有出错...所以这让我很困惑,我不知道该怎么办用它。

我一直在谷歌搜索,但到目前为止还是一无所获。
所以我在这里,希望其他人可以指导我解决这个问题。

@VonC 哦,谢谢你。我找到了解决它的方法。密钥是 jetbrains IDE 配置中的 SSH 可执行文件。我将内置的 SSH 可执行文件更改为本机,然后建立了 SSH 连接。

OP 确认这是一个 IntelliJ SSH 配置问题。

参见“Using Git integration”:

If your remote uses the SSH protocol, in addition to configuring a password policy, you can choose whether you want to use a native or a built-in SSH executable.
To do this, in the Settings/Preferences dialog (Ctrl+Alt+S), select Version Control | Git on the left.
From the SSH executable drop-down list, select one of the following options:

  • Built-in: all authorization is performed on the IDE side.
    If login and password are used for authentication, authorization is performed in accordance with the selected password policy.
    If an SSH key without a passphrase is used for authentication, IntelliJ IDEA will access the ~/.ssh/config file and get the key from there.
    If authentication requires an SSH key with a passphrase, Git looks for it in the credential helper, and, if no credential helper is found, it returns a prompt to the IDE. If you have configured a password policy, IntelliJ IDEA looks for credentials in the passwords database. If there is no passwords database, it displays a prompt and you have to enter SSH key and a passphrase.
  • Native: all authorization is performed on Git side. No prompt will be displayed, so choose this authorization type if you are using SSH without a passphrase, or the passphrase is saved in a credentials helper, or there is an SSH agent.

在这种情况下使用 Git 授权是正确的设置。