Mailing List Archive

sftp 'Couldn't execute "bash"' lls error
Hi all.
Congratulations for the terrific software!

I want to know how it is explained.

Connected to ipv6-wireless.
sftp> ls
BLFS-11.3-html-sysv blfs-book-11.3-html.tar.xz set-rclone-password.sh
sftp> lls
Couldn't execute "bash": No such file or directory
Shell exited with status 1
sftp>


Note: this situation happened within "GNU Screen" (pts). It worked
normally in the terminal console (tty).

Operating System: Debian GNU/Linux 12 ("bookworm")

ssh -V
OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023


Thank you.

Jamenson Ferreira Espindula de Almeida Melo
Jaboatão dos Guararapes, Pernambuco, Brazil
GNU/Linux user # 166197
https://linuxcounter.net/cert/166197.png

Key fingerprint:
234D 1914 4224 7C53 BD13 6855 2AE0 25C0 08A8 6180
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: sftp 'Couldn't execute "bash"' lls error [ In reply to ]
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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: sftp 'Couldn't execute "bash"' lls error [ In reply to ]
Em qui., 19 de out. de 2023 às 14:33, Thorsten Glaser
<t.glaser@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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev