• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Issue Backspace key and history don't work in chroot SSH Terminal

Jens Johansson

Basic Pleskian
Server operating system version
AlmaLinux 8.9
Plesk version and microupdate number
18.0.59 Update #2
Hi,
we have two issues with the SSH Terminal extension with chrooted ssh access. In the chroot shell Backspace is not working. Instead of deleting, it adds a space. And the history got a problem too. When I press arrow up once it shows correctly the last entry, but on a second press it just concatenates the entries. So for example if my last commands were ls, cd, mc and I press arrow up three times it would print “lscdmc” instead of mc.

I already tried this without effect: Issue - Backspace key doesn't work when logged in chroot account

Has anyone an idea what to do, to fix this?
 
I have solved it this way in Almalinux:


**Logging in as root:**

1. **Download the script**:
Start by downloading the necessary script with the following command:

Bash:
curl -o update-chroot.sh https://raw.githubusercontent.com/plesk/kb-scripts/master/update-chroot/update-chroot.sh


2. **Make the script executable**:
Change the permissions of the downloaded script to make it executable by running:

Bash:
chmod +x update-chroot.sh


**Execution steps:**

3. **Copy terminfo directory**:
Copy the terminfo directory to the chroot environment to ensure the terminal type information is available:

Bash:
cp -a /usr/share/terminfo/ /var/www/vhosts/chroot/usr/share/


4. **Copy the inputrc file**:
The inputrc file contains settings for the readline library, which handles input for many command-line programs. Copy it with:

Bash:
cp /etc/inputrc /var/www/vhosts/chroot/etc/


5. **Apply the changes**:
Finally, apply the changes to ensure the chroot environment is updated. Execute the script by running:

Bash:
./update-chroot.sh --apply all
 
Back
Top