git push在远程服务器上生成有关代理进程id的未知错误
我正试图在ubuntu服务器上使用git push在远程服务器上生成有关代理进程id的未知错误,git,ubuntu,Git,Ubuntu,我正试图在ubuntu服务器上使用 git push production master 我一直收到这个错误消息 fatal: protocol error: bad line length character: Agen fatal: The remote end hung up unexpectedly 所以我做了 ssh <hostname> git-receive-pack <path-to-git-repo> 这是典型的ssh连接,它在标准输出中打印内
git push production master
我一直收到这个错误消息
fatal: protocol error: bad line length character: Agen
fatal: The remote end hung up unexpectedly
所以我做了
ssh <hostname> git-receive-pack <path-to-git-repo>
这是典型的ssh连接,它在标准输出中打印内容。
例如,Ubuntu服务器上使用的远程帐户有一个
.basrch
或一个.profile
,其中包含echo
确保一个ssh-T”),它将打印ssh代理pid
尽量避免这种情况,特别是考虑到ssh代理更适合客户端(我要缓存ssh私钥密码短语)问题是,在试图从github设置另一个存储库并进行git克隆时,我在.bashrc文件中设置了一个ssh代理。但正如VonC指出的那样,代理打印了上面的消息并阻止我推送到新的repo。这次过多的文本是代理pid 17671
。似乎是调试输出我还看到了“agent=git/2.7.4””“我同意。服务器端似乎显示了一些存储库。但是我找不到服务器显示消息的位置,我检查了您建议的两个文件,只找到了一行echo并对其进行了评论out@JoshuaMajebi检查这些文件是否正在执行eval ssh代理:请参阅上面的命令打印出来——欢迎使用Ubuntu 16.04.2 LTS(GNU/Linux 4.4.0-1020-aws x86_64)*文档:*管理:*支持:使用Ubuntu Advantage cloud Guest获得云支持:可以更新46个包。0个更新是安全更新。***需要重新启动系统***代理pid 19721
Agent pid 17671
008c0000000000000000000000000000000000000000 capabilities^{} report-status
delete-refs side-band-64k quiet atomic ofs-delta agent=git/2.7.4
0000