fatal: protocol error: bad line length character: Inva

北战南征 提交于 2019-12-08 13:08:32

This error is generally seen when using an ssh url (like git@aserver:arepo)

The usual cause is, on the git repo hosting server side, a .profile or .bashrc which includes some echo: see Git FAQ

It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode.

To test this, do:

ssh user@git.example.com echo testing commands

You should only see testing commands returned. If there are any other characters, you should examine your dot shell rc file to find any echo or other commands that may produce output.

In your case, for Openshift, consider one of the common commands:

rhc ssh ls

Check if the ls is polluted by any other output.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!