• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

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