Articles in this section

Actions in a chrooted shell environment and SSH Terminal extension do not work correctly: "E557: Cannot open termcap file" and arrow keys have incorrect effect

kb: bug Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • The text files cannot be opened by the vim editor, with the error below:

    E557: Cannot open termcap file

  • Characters are not removed with the backspace button, instead a space character is written in SSH

  • In an attempt to read a file with less utility, after it is not possible to exit from the opened file.

  • In SSH Terminal extension the arrow keys do not work as expected to navigate in the SSH session

Cause

Plesk bug with ID #PPPM-12254, which is planned to be fixed in a future Plesk version.

Resolution

Until the bug is fixed, apply the following workaround:

  1. Download the update_chroot script to the server

  2. Add the terminal capabilities to the chroot template by executing the update_chroot script as below:

    # ./update-chroot.sh --termcap

  3. Apply the new template:

    • For the specific domain:

      # ./update-chroot.sh --apply example.com

      Note: replace example.com with the name of the required domain.

    • For all domains:

      # ./update-chroot.sh --apply all

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.