I'm currently using Fedora 18 gnome-terminal, then started tmux
multiplexer in it. After I connected to a CentOS 5 server via ssh
command, I find:
ls
result has no colortmux
,screen
,hexedit
,htop
all failed to start with error message like:open terminal failed: missing or unsuitable terminal: screen-256color
It seems that ssh
passes the $TERM environment variable to the server, but I can't find it in /etc/ssh/ssh_config
file of Fedora 18.
Although I can manually change the $TERM variable on the server, each time I connect, it happens again. So how to prevent it?