[mosh-users] Mosh session logging
Andrew C Aitchison
mosh at aitchison.me.uk
Wed Apr 16 09:51:47 EDT 2025
I use mosh to connect to a ubuntu machine.
I had scripts which could tell me whether a session came from
my phone or my tablet (assuming it was initiated on the local
network), but recently bit rot has set in.
The fundamental problem is that for a roaming protocol,
the ip address does not identify the client device.
First the transition to 64bit time with Ubuntu Oracular 24.10,
meant a switch from wtmp to wtmpdb and pam stopped recording the pty
so that `last` just said 'ssh' in the terminal column.
Now Ubuntu Plucky 25.04 has broken `who`
https://discourse.ubuntu.com/t/plucky-puffin-release-notes/48687#p-120902-systemd-v2574-8
as "systemd is no longer built with utmp support".
I'm wondering whether adding a pam module or config for mosh
is the way to go ?
Does anyone else have experience, thoughts or ideas on logging mosh
sessions on current OSes ?
Thanks,
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the mosh-users
mailing list