mobile-shell / mobile-shell/mosh
Mosh won't quit on issuing exit command
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 14.5k
- Forks
- 865
- PR merge metrics
- No merged PRs in 30d
Description
Running into this really weird bug with one particular server. When I'm done with my SSH/mosh sessions I like to run exit to tell the server to "cleanly" break off the connection. On most of my servers this works well. However, on one shared server that I use with others, when I run exit from the shell, it is immediately followed by the output logout, but nothing happens.
The only way to quit mosh in this state is to issue the Ctrl-^ and then the period (.) command to quit mosh on my side (client), which is a bit annoying. Why isn't mosh terminating the connection?
Just to test, I spun up a fresh Ubuntu server and installed mosh, and mosh correctly kills both client and server when I issue the exit command. What could be going wrong?
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 reproducing the behavior on the shared server, comparing an exit from the shell with the fresh Ubuntu setup where both sides terminate. Trace the shell's logout result and mosh's connection shutdown, then verify that the client exits without requiring Ctrl-^ followed by ..
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, shell
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100