geerlingguy/ansible-role-ssh-chroot-jail

backspace not working when entering chroot

lotusnoir opened this issue · 3 comments

Hello, thanks for your work,
the role works nice but i dont find how to make the backspace working (i'm running in a Debian 10)

1/ I tried to copy the /usr/share/terminfo into the jail path without success
2/ tried the TERM solution with
export TERM=linux or export TERM=vt100
3/ tried to change the erase char with
#stty -a and #stty erase ^H or stty sane

This is the chroot env:

.
├── bin
│   ├── bash
│   ├── cat
│   ├── chmod
│   ├── chown
│   ├── cp
│   ├── ed
│   ├── grep
│   ├── id
│   ├── ls
│   ├── mkdir
│   ├── nano
│   ├── ping
│   ├── rm
│   ├── sed
│   └── sh
├── dev
│   ├── null
│   ├── random
│   ├── urandom
│   └── zero
├── etc
│   ├── bash.bashrc
│   ├── bash_completion
│   ├── group
│   ├── hosts
│   ├── inputrc
│   ├── ld.so.cache
│   ├── ld.so.conf
│   ├── nsswitch.conf
│   ├── passwd
│   └── shells
├── home
│   └── toto
│   └── x86_64-linux-gnu
│       ├── libacl.so.1
│       ├── libattr.so.1
│       ├── libcap.so.2
│       ├── libcrypt.so.1
│       ├── libc.so.6
│       ├── libdl.so.2
│       ├── libexpat.so.1
│       ├── libgcrypt.so.20
│       ├── libgpg-error.so.0
│       ├── libgpm.so.2
│       ├── libidn2.so.0
│       ├── liblz4.so.1
│       ├── liblzma.so.5
│       ├── libm.so.6
│       ├── libncurses.so.6
│       ├── libncursesw.so.6
│       ├── libnettle.so.6
│       ├── libnsl-2.28.so
│       ├── libnsl.so.1
│       ├── libnss_compat-2.28.so
│       ├── libnss_compat.so.2
│       ├── libnss_dns-2.28.so
│       ├── libnss_dns.so.2
│       ├── libnss_files-2.28.so
│       ├── libnss_files.so.2
│       ├── libnss_hesiod-2.28.so
│       ├── libnss_hesiod.so.2
│       ├── libnss_nis-2.28.so
│       ├── libnss_nisplus-2.28.so
│       ├── libnss_nisplus.so.2
│       ├── libnss_nis.so.2
│       ├── libnss_systemd.so.2
│       ├── libpcre.so.3
│       ├── libprocps.so.7
│       ├── libpthread.so.0
│       ├── libresolv.so.2
│       ├── librt.so.1
│       ├── libselinux.so.1
│       ├── libsystemd.so.0
│       ├── libtinfo.so.6
│       ├── libunistring.so.2
│       ├── libutil.so.1
│       └── libz.so.1
├── lib64
│   └── ld-linux-x86-64.so.2
└── usr
    ├── bin
    │   ├── awk
    │   ├── cut
    │   ├── dircolors
    │   ├── find
    │   ├── free
    │   ├── groups
    │   ├── head
    │   ├── id
    │   ├── python3
    │   ├── scp
    │   ├── sort
    │   ├── stty
    │   ├── tail
    │   ├── tee
    │   ├── top
    │   ├── touch
    │   ├── tput
    │   ├── uniq
    │   ├── vi
    │   ├── vim
    │   ├── wc
    │   ├── which
    │   └── whoami
    ├── lib
    │   └── locale
    │       └── locale
    │           ├── C.UTF-8
    │           │   ├── LC_ADDRESS
    │           │   ├── LC_COLLATE
    │           │   ├── LC_CTYPE
    │           │   ├── LC_IDENTIFICATION
    │           │   ├── LC_MEASUREMENT
    │           │   ├── LC_MESSAGES
    │           │   │   └── SYS_LC_MESSAGES
    │           │   ├── LC_MONETARY
    │           │   ├── LC_NAME
    │           │   ├── LC_NUMERIC
    │           │   ├── LC_PAPER
    │           │   ├── LC_TELEPHONE
    │           │   └── LC_TIME
    │           └── locale-archive
    ├── lib64
    └── share
        ├── bash-completion
        │   └── bash_completion
        └── terminfo
            ├── 1
[...]

thanks in advance

stale commented

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale commented

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

This issue is still present. Thanks for opening the issue. I thought it was a problem with my VSCode terminal...

A pity that the bot is configured to close issues only based on no activity...