Re: no longer can SSH with bash in screen
Jamenson Espindula <[email protected]> Thu, 23 Oct 2025 07:48:06 -0300
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <CAOW_YO=E6o=7Aras5X2Lc5CXnNC1FxMEsxcwXgHCmwxHXbCBBQ@mail.gmail.com> |
Em qui., 23 de out. de 2025 =C3=A0s 02:46, David Chmelik <[email protected]> escreveu: > > I used to 'defshell bash' in screenrc. Earlier in 2020s I could no longe= r > 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=3D$(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=C3=A3o dos Guararapes, Pernambuco, Brazil GNU/Linux user #166197; LFS ID 24492 Key fingerprint: 234D 1914 4224 7C53 BD13 6855 2AE0 25C0 08A8 6180