4

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?
  • Try sudo less /var/www/mutillidae/config.inc and use ssh -X instead of just ssh – Basile Starynkevitch Aug 13 '17 at 13:33
  • 1
    try sudo vi /var/www/mutillidae/config.inc – Yaron Aug 13 '17 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. – Maverick_284 Aug 13 '17 at 13:35
  • and then opened the file. – Maverick_284 Aug 13 '17 at 13:36
  • @abhijithpogiri: Don't comment your own question, but edit your question to improve it by giving details. – Basile Starynkevitch Aug 13 '17 at 13:37
7

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
  • Thanks. After changing it from xterm-256color to xterm, it worked. – Maverick_284 Aug 13 '17 at 13:48
  • 1
    @abhijithpogiri - great, if my answer solve your question, please accept it. – Yaron Aug 13 '17 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.