sftp 'Couldn't execute "bash"' lls error

Jamenson Espindula jafesp at gmail.com
Fri Oct 20 21:28:11 AEDT 2023


Em qui., 19 de out. de 2023 às 14:33, Thorsten Glaser
<t.glaser at tarent.de> escreveu:
>
> On Thu, 19 Oct 2023, Jamenson Espindula wrote:
>
> >Note: this situation happened within "GNU Screen" (pts). It worked
> >normally in the terminal console (tty).
>
> Check your screen config (~/.screenrc, /etc/screenrc), in
> particular the “shell” command.
>
> For reference, mine has:
>
> shell "-${SHELL}"
>
> And the environment variable $SHELL is /bin/mksh (so a full
> pathname, not just the name of the executable).
>
> bye,
> //mirabilos
> --
> Infrastrukturexperte • Qvest Digital AG
> Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
> Telephon +49 228 54881-393 • Fax: +49 228 54881-235
> HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
> Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
> Vorsitzender Aufsichtsrat: Peter Nöthen

OK. It looks like it is working perfectly now.

My "/etc/screenrc":
shell -/usr/bin/bash

$ echo ${SHELL}
/usr/bin/bash

Why was there such a problem?

Thank you very much.

Jamenson espindula


More information about the openssh-unix-dev mailing list