关于git clone的时候显示fatal: protocol error: bad line length character: Welc的问题

今天遇到了一个奇怪的事情,git 在一台机器上的克隆出现了问题,提示:

[cnangel@r101073010 tmp]$git clone git@xxxx.com:openad/otserver.git

Cloning into 'otserver'...
fatal: protocol error: bad line length character: Welc

发现ssh加入了-X会导致此现象,但其他机器即使加入了-X也没有此问题,怀疑是ssh配置的问题,然后查找/etc/ssh/ssh_config文件,发现多了一行:

ForwardX11 yes

去掉即可。

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on January 18, 2017 10:17 AM.

Linux应用心得(四) was the previous entry in this blog.

新年快乐 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.