10

I logged into metasploitable from kali linux using SSH.(Windows host)

Now I want to access file named config.inc (/var/www/mutillidae/config.inc) in metasploitable.

I tried opening it using sudo nano /var/www/mutillidae/config.inc command and it showed me an error.

error opening terminal: xterm-256color

  • How to overcome this error?
  • Is there any problem as I opened it using SSH?
6
  • Try sudo less /var/www/mutillidae/config.inc and use ssh -X instead of just ssh Aug 13, 2017 at 13:33
  • 1
    try sudo vi /var/www/mutillidae/config.inc
    – Yaron
    Aug 13, 2017 at 13:34
  • It gave me a warning(terminal is not fully functional). and then opened the file. When I tried to open it using less. Aug 13, 2017 at 13:35
  • and then opened the file. Aug 13, 2017 at 13:36
  • @abhijithpogiri: Don't comment your own question, but edit your question to improve it by giving details. Aug 13, 2017 at 13:37

1 Answer 1

21

It seems like you have a problem with the terminal definition.

Try using xterm instead of xterm-256color

export TERM=xterm

or the following terminal setting:

export TERMINFO=/etc/terminfo
export TERM=linux

Also, if you still have problem with nano try using vi which is a simple editor and doesn't required much from the terminal

sudo vi /var/www/mutillidae/config.inc
2
  • Thanks. After changing it from xterm-256color to xterm, it worked. Aug 13, 2017 at 13:48
  • 1
    @abhijithpogiri - great, if my answer solve your question, please accept it.
    – Yaron
    Aug 13, 2017 at 13:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .