error opening terminal: xterm-256color
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?
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