[SOLVED] ‘xterm-256color’: unknown terminal type.

Problem
When you call a command via ssh connection you receive an exception like below:

test@localhost:~# top
'xterm-256color': unknown terminal type.
test@localhost

 

Cause
The target Linux does not support xterm-256color terminal. You can try to use xterm.

 

Solution
Open terminal and export the TERM variable like below:

export TERM=xterm
4 4 votes
Article Rating
Subscribe
Notify of
guest
4 Comments
oldest
newest most voted
Inline Feedbacks
View all comments
Saulo
Saulo
1 year ago

Valeu

xavier666
xavier666
11 months ago

this problem occurs when using screen. The solution helped my case as well

Thanks
Thanks
8 months ago

You saved my day man!

jelabarre
jelabarre
3 months ago

does not help when Lnav *NEEDS* xterm-256color to display properly