我最近一直在PyCharm中与Git合作。
但是当我测试Git URL时,它给了我这个错误:
fatal: protocol error: bad line length character: Pa
内部服务器上的远程存储库通过专用帐户访问:
anAccount@ourServer:ourRepo
首先检查切换协议是否有帮助:
https://github.com/...
,请切换到ssh://[email protected]/...
[email protected]:...
,请切换到https://github.com/...
对于SSH URL,请至少尝试执行以下操作:
yourUser@yourRemoteServer:~/.ssh/authorized_keys
(确保公共密钥内容复制id_rsa.pub
为一个线在该authorized_keys
文件中)Plink.exe
那是:
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\cmd;%GH%\mingw64\bin;%PATH%
ssh-keygen -m PEM -t rsa -P ""
# Copy the %USERPROFILE%\.ssh\id_rsa.pub content to the remote server
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句