This question is almost identical to another, however the solution is not working.
First, let me show you everything I can think of that might be relevant:
$ unalias ssh git # Just making sure
$ unset git ssh # Making really, really sure
$ which ssh
/usr/bin/ssh
$ which git
/usr/bin/git
$ cat ~/.bashrc
# super minimal!
case $- in
*i*) ;;
*) return;;
esac
$ cat ~/.profile
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
fi
Here is the problem:
$ git pull origin master
fatal: protocol error: bad line length character: ?]0;
# ... and then git hangs.
The computer I am using gets the same result from all repos hosted on GitHub and AWS CodeCommit.
The following gives the expected response:
$ ssh git@github.com
PTY allocation request failed on channel 0
Hi mslinn! Youve successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
The problem showed up today. Yesterday I changed many configuration files all over the place. Today I tried to reverse them all, but obviously at least one still remains.
Another machine, unchanged, can git pull
from all repos without any issue.
What could the matter be?