Skip to main content
2 of 5
added 2 characters in body
LiuYan 刘研
  • 4.2k
  • 6
  • 33
  • 34

How to prevent ssh client pass TERM environment variable to server?

I'm currently using Fedora 18 gnome-terminal. After I connected to a CentOS 5 server via ssh command, I found:

  • ls result has no color
  • tmux, screen, hexedit, htop all failed to start with error message like "open terminal failed: missing or unsuitable terminal: screen-256color"

It seems that ssh passed TERM environment variable to server, but I can't find it in /etc/ssh/ssh_config file of Fedora 18.

Although I can't manually change TERM variable on server, but each time I connected, it happends again. So how to prevent it?

LiuYan 刘研
  • 4.2k
  • 6
  • 33
  • 34