Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have mosh print the ssh … mosh-server command it’s running, for better debugging discoverability #1005

Open
andersk opened this issue Sep 12, 2018 · 0 comments

Comments

@andersk
Copy link
Member

andersk commented Sep 12, 2018

Often the first step to debugging why mosh doesn’t work is to try launching mosh-server via ssh in the same way that mosh does (as described in @eminence’s handy Debugging and Theory guide). We could make that easier and more discoverable by having mosh print the exact ssh command it’s running.

We’d probably want to tidy up our shell quoting so this output isn’t full of unnecessary quotes and quoted quotes.

$ mosh localhost
/usr/bin/mosh: Running 'ssh' '-n' '-tt' '-S' 'none' '-o' 'ProxyCommand='\''mosh'\'' '\''--family=prefer-inet'\'' --fake-proxy -- %h %p' 'localhost' '--' 'mosh-server '\''new'\'' '\''-c'\'' '\''256'\'' '\''-s'\'' '\''-l'\'' '\''LANG=en_US.UTF-8'\'' '\''-l'\'' '\''LANGUAGE=en_US'\'' '\''-l'\'' '\''LC_NUMERIC=en_US.UTF-8'\'' '\''-l'\'' '\''LC_TIME=en_US.UTF-8'\'' '\''-l'\'' '\''LC_MONETARY=en_US.UTF-8'\'' '\''-l'\'' '\''LC_PAPER=en_US.UTF-8'\'' '\''-l'\'' '\''LC_NAME=en_US.UTF-8'\'' '\''-l'\'' '\''LC_ADDRESS=en_US.UTF-8'\'' '\''-l'\'' '\''LC_TELEPHONE=en_US.UTF-8'\'' '\''-l'\'' '\''LC_MEASUREMENT=en_US.UTF-8'\'' '\''-l'\'' '\''LC_IDENTIFICATION=en_US.UTF-8'\'''
bash: mosh-server: command not found
Connection to localhost closed.
/usr/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)
cgull added a commit to cgull/mosh that referenced this issue May 17, 2020
I think this will help with the papercut of "Did not find mosh server
startup message".  This message confuses people; often the real
problem is that the command to start the remote mosh-server failed
somehow.

Fixes mobile-shell#1042, partially resolves mobile-shell#1005.

Also relevant for mobile-shell#1042 and countless questions on IRC.
cgull added a commit to cgull/mosh that referenced this issue May 18, 2020
I think this will help with the papercut of "Did not find mosh server
startup message".  This message confuses people; often the real
problem is that the command to start the remote mosh-server failed
somehow.

Fixes mobile-shell#1042, partially resolves mobile-shell#1005.

Also relevant for mobile-shell#1042 and countless questions on IRC.
cgull added a commit to cgull/mosh that referenced this issue May 31, 2020
I think this will help with the papercut of "Did not find mosh server
startup message".  This message confuses people; often the real
problem is that the command to start the remote mosh-server failed
somehow.

Fixes mobile-shell#1042, partially resolves mobile-shell#1005.

Also relevant for mobile-shell#1042 and countless questions on IRC.
cgull added a commit to cgull/mosh that referenced this issue Oct 27, 2022
I think this will help with the papercut of "Did not find mosh server
startup message".  This message confuses people; often the real
problem is that the command to start the remote mosh-server failed
somehow.

Fixes mobile-shell#1042, partially resolves mobile-shell#1005.

Also relevant for mobile-shell#1042 and countless questions on IRC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant