You are not logged in.

#1 2016-11-17 11:55:37

JohnWaltery
Member
Registered: 2016-11-17
Posts: 2

[CHROOT] Backspace issue (solved)

Hello everyone,


I have been trying for several days to set up a CHROOT for certain users in connection SSH by strictly following the indications of the link: https://wiki.archlinux.fr/Environnement_chroot. (french sorry)

However, the backspace key moves the cursor forward instead of moving it backward. I tried to add the stty program to /usr/bin/ of the chrooted directory, do a stty erase ^H or ^?, nothing is done, the problem and the same either from a Mac or Linux terminal .

And yet ... something that surpasses me ... the backspace key works correctly with a non-chrooted SSH connection. And if I chroot the user directory directly from the server with root session for which the backspace works, same problem once chrooted the backspace becomes faulty.

Although I tried to find solutions on Google, they all proved unsuccessful.

Thank you for your answers.

Last edited by JohnWaltery (2016-11-23 08:20:20)

Offline

#2 2016-11-17 16:14:01

seth
Member
Registered: 2012-09-03
Posts: 62,070

Re: [CHROOT] Backspace issue (solved)

The behavior is determined by the shell, not chroot or ssh.
=> Which one? bash, zsh, ...?

Offline

#3 2016-11-17 16:19:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,358

Re: [CHROOT] Backspace issue (solved)

What happens if, in the ssh session, you run the command export TERM=linux
?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2016-11-23 08:19:12

JohnWaltery
Member
Registered: 2016-11-17
Posts: 2

Re: [CHROOT] Backspace issue (solved)

I apologize for the response time. I have found the solution. It was enough to copy the directory /usr/share/terminfo/ to /usr/share/terminfo of chroot directory.

Best regards.

Offline

#5 2019-11-01 16:06:49

hurd
Member
Registered: 2015-12-31
Posts: 2

Re: [CHROOT] Backspace issue (solved)

JohnWaltery wrote:

I apologize for the response time. I have found the solution. It was enough to copy the directory /usr/share/terminfo/ to /usr/share/terminfo of chroot directory.

Best regards.


tank you for this

I have found the solution. copy the directory /usr/share/terminfo/ to /usr/share/terminfo of chroot directory.

it work for me

Offline

#6 2019-11-01 16:39:27

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: [CHROOT] Backspace issue (solved)

Please do not necrobump.

Closing.

Offline

Board footer

Powered by FluxBB