3

I'm connecting to a remote server through SSH Manjaro machine with urxvt to a LXD container, which is running Centos 7. But for some odd reasean I cannot run htop.....
I'm getting the following error

[someuser@Proxy ~]$ htop
Error opening terminal: xterm-256-color.

I'm pretty sure it is a terminal issue. I just don't know how to fix it.

2
  • I think this is the same issue: stackoverflow.com/questions/6788402/… Commented Feb 23, 2017 at 20:31
  • 1
    I think your correct! I found the answer which is to add export TERM=xterm in .bashrc. But due to the rules I can't add the answer so quickly Commented Feb 23, 2017 at 20:33

2 Answers 2

3

Your TERM variable has a wrong value for htop.

According to this answer you have to set TERM correctly:

export TERM=xterm-color

or

export TERM=xterm

You can put this in .bashrc of the SSHD server user.

1
  • Easy points to you ;) Commented Feb 24, 2017 at 9:15
-2

Probably is missing the $DISPLAY environment variable or your connection through ssh-server don't allow ForwardX11, please review this parameter in the sshd.conf of your remote server.

The parameter ForwardX11 must be yes

1
  • 3
    No, the question is about a terminal program, not about a GUI program. Commented Feb 23, 2017 at 23:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.