mobile-shell / mobile-shell/mosh
Mosh doesn't print last login info like sshd does
Open
Nobody has claimed this yet.
feature
- Dominant language
- C++
- Stars
- 14.5k
- Forks
- 865
- PR merge metrics
- No merged PRs in 30d
Description
Skyfaller on IRC asked about the absence of a "Last login: " message from Mosh.
This seems like a pretty reasonable feature request, but it's not quite trivial:
- utmp/wtmp/utx/etc portability issues (only supporting utx might be reasonable here)
- For an ssh session, sshd first prints the "Last login:" message, then writes a new login record. mosh-server invoked via sshd would of course see that new record. Correctly ignoring doesn't seem too hard at first glance (something like "ignore records for a current session on the tty mosh-server was invoked in"), but I suspect it might get a little trickier.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by researching how mosh-server is invoked through sshd and how utmp, wtmp, and utx record login sessions on supported platforms. The work is done when Mosh reliably prints the correct “Last login:” information without treating the current SSH or Mosh session as the previous login, with the portability tradeoffs resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100