1

I have installed Gitea on a LXC container and added my ssh key through the UI.

But when I do git clone [email protected]:theo/test-repo.git I will get the following error:

Cloning into 'test-repo'...
fatal: protocol error: bad line length character: This

How can I fix this?

2

1 Answer 1

0

I have seen this before whenever your remote user profile/.bashrc prints data, instead of being silent.

If, for instance, ssh [email protected] pwd returns anything else than the path working directory on the remote machine, Git would be in trouble, as it would not interpret correctly the output of its SSH query when cloning the remote repository.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.