Bug#1087644: openssh-server: no tty associated with login session

Chris Hofstaedtler <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <yrt2uwkpkyewi6mk3zmvx5fbswzor4tq7kcyoz43veqbsiw24h__37117.3347740964$1731823596$gmane$org@a4l3y3bhb75r>
* Colin Watson <[email protected]> [241117 00:32]:
> Control: forwarded -1 https://github.com/openssh/openssh-portable/pull/403
> 
> On Sat, Nov 16, 2024 at 05:14:38PM +0100, Chris Hofstaedtler wrote:
> > Recently I've become aware of ssh sessions no longer showing a value for "TTY"
> > in w(1) and loginctl list-sessions. I think this leads to issues like wall(1) /
> > shutdown / ... not delivering messages to the terminals of users logged in via
> > ssh.
> [...]
> > I don't know if the observed behaviour is an effect of utmp going
> > away, or caused by other changes in sshd. Could you please check
> > what's going on there?
> 
> While reading up on this I ran across
> https://github.com/openssh/openssh-portable/pull/403, whose description
> sounds like the same thing.

Possible, but that will not fix reporting the tty to logind. I'm
wondering if something in sshd changed so that the tty is not
available/visible to PAM anymore?

If PAM knows about the tty, pam_systemd.so and pam_wtmpdb.so should
hopefully just record it.

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.