Em qui., 23 de out. de 2025 às 02:46, David Chmelik
<[email protected]> escreveu:
>
> I used to 'defshell bash' in screenrc.  Earlier in 2020s I could no longer
> SSH in screen.  It was because of that setting but don't know why.  Now I
> always have to 'source /etc/profile' in screen though I can ssh after
> that.
>
I do not know if the instructions below will solve your problem,
however it is what I use.

In your $HOME/.screenrc include this:
shell "${SHELL}"

The exported variable "${SHELL}" should expand to '/usr/bin/bash'. If
not, you will need to edit your '/etc/passwd' (the line related to
your user account should contain '/usr/bin/bash' - complete path - as
the shell - the seventh field).

At this point, there are two situations related to the password agent:

Situation one: your password agent is the 'ssh-agent'.

Situation two: your password agent is the 'gpg-agent'.

I use the 'gpg-agent' as my password agent. In this fashion, you will
need to include the following in you $HOME/.bashrc:
export GPG_TTY=$(tty)

>From now on, there are some configurations, but they are related to
the GnuPG, not the GNU Screen.

Jamenson Ferreira Espindula de Almeida Melo
Jaboatão dos Guararapes, Pernambuco, Brazil
GNU/Linux user #166197; LFS ID 24492
Key fingerprint: 234D 1914 4224 7C53 BD13 6855 2AE0 25C0 08A8 6180

Reply via email to