tutorial for mosh

78 views
Skip to first unread message

cbp...@gmail.com

unread,
Jul 6, 2021, 6:45:24 PM7/6/21
to chromium-hterm
How do you actually use mosh on hterm. I have the mosh server on the remote, but I can't figure out how to use Secure Shell to connect.

Any help appreciated.

William Furr

unread,
Jul 7, 2021, 9:11:16 AM7/7/21
to cbp...@gmail.com, chromium-hterm
In the extension menu, it's the weird looking option that says "⸘m🍪sh‽".  That opens the mosh connection dialog, which you just fill in with your host information as per usual.

On Tue, Jul 6, 2021 at 6:45 PM cbp...@gmail.com <cbp...@gmail.com> wrote:
How do you actually use mosh on hterm. I have the mosh server on the remote, but I can't figure out how to use Secure Shell to connect.

Any help appreciated.

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/25a47dda-91f3-4d7a-96c3-f4f13e713281n%40chromium.org.

cbp...@gmail.com

unread,
Jul 7, 2021, 10:00:57 AM7/7/21
to chromium-hterm, William Furr, chromium-hterm, cbp...@gmail.com
Thanks. Now trying to integrate with tmux. Sigh.

William Furr

unread,
Jul 7, 2021, 11:25:27 AM7/7/21
to cbp...@gmail.com, chromium-hterm
mosh <host> -- tmux attach -t <session name>

works nicely for me to connect with mosh and then start or reconnect to my tmux session.

William Furr

unread,
Jul 7, 2021, 11:26:21 AM7/7/21
to cbp...@gmail.com, chromium-hterm
I think "tmux attach -t <session>" would go in the "remote command" box in the mosh connection dialog in the extension.  Can't test it myself because the mosh extension doesn't work on my network, alas.

cbp...@gmail.com

unread,
Jul 20, 2021, 10:56:36 AM7/20/21
to chromium-hterm, William Furr, chromium-hterm, cbp...@gmail.com
WFM. Thanks for pointing me in the right direction.

cbplus chromebook

unread,
Aug 2, 2021, 1:48:04 PM8/2/21
to chromium-hterm
for anybody trying mosh and tmux here's what I did to connect whether the specific tmux session is up or not.

On the mosh connect dialog:
Remote command:  bash /usr/local/bin/test-tmux.sh

cat /usr/local/bin/test-tmux.sh
#!bin/bash

if tmux ls | grep -q ast
   then
#      echo "ast exists"
     tmux attach -t ast
   else
     tmux new    -s ast
#      echo "no ast"
fi 
Reply all
Reply to author
Forward
0 new messages