[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

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
xavier666Saulo Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Saulo
Guest
Saulo

Valeu

xavier666
Guest
xavier666

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

Close Menu