Mosh: Difference between revisions

From wikinotes
 
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
* changing ip addresses (ex: cellphone networks)
* changing ip addresses (ex: cellphone networks)


= Install =
= Documentation =
<blockquote>
<blockquote>
You'll need to install mosh on both the client/server.<br>
{| class="wikitable"
Mosh works by first connecting over ssh, then starting and communicating via the mosh-daemon.
|-
| <code>man mosh</code> || https://man.archlinux.org/man/community/mosh/mosh.1.en
|-
| <code>man mosh-client</code> || https://man.archlinux.org/man/community/mosh/mosh-client.1.en
|-
| <code>man mosh-server</code> || https://man.archlinux.org/man/community/mosh/mosh-server.1.en
|-
| home || https://mosh.org/
|-
|}
</blockquote><!-- Documentation -->


<source lang="bash">
= Locations =
pacman -S openssh-portable mosh  # arch
<blockquote>
pkg install openssh mosh        # FreeBSD
{| class="wikitable"
 
|-
# you'll also need to configure your openssh to receive connections
| <code>~/.ssh/config</code> || client config
</source>
|-
</blockquote><!-- Install -->
| UDP <code>60000-61000</code> || default port-range (client-out, server-in)
|-
|}
</blockquote><!-- Locations -->


= Usage =
= Notes =
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
{| class="wikitable"
mosh --ssh="ssh -p <port>" user@host
|-
</syntaxhighlight>
| [[mosh install]]
</blockquote><!-- Usage -->
|-
| [[mosh configuration]]
|-
| [[mosh usage]]
|-
|}
</blockquote><!-- Notes -->

Latest revision as of 04:00, 29 December 2021

Mosh is an alternative ssh client that specializes operating in environment with

  • high latency
  • changing ip addresses (ex: cellphone networks)

Documentation

man mosh https://man.archlinux.org/man/community/mosh/mosh.1.en
man mosh-client https://man.archlinux.org/man/community/mosh/mosh-client.1.en
man mosh-server https://man.archlinux.org/man/community/mosh/mosh-server.1.en
home https://mosh.org/

Locations

~/.ssh/config client config
UDP 60000-61000 default port-range (client-out, server-in)

Notes

mosh install
mosh configuration
mosh usage