• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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