Crates.io | moshudp |
lib.rs | moshudp |
version | 0.1.4 |
source | src |
created_at | 2022-05-07 20:47:48.859438 |
updated_at | 2022-05-10 00:04:14.285175 |
description | Alternative simplistic UDP-based session establisher for mosh-client and mosh-server. |
homepage | |
repository | https://github.com/vi/moshudp |
max_upload_size | |
id | 582249 |
size | 36,665 |
Typically mosh uses ssh to establish session. However sometimes SSH is not available due to bad network, or you could lose access to SSH (and therefore to Mosh) because of some misconfiguration.
Moshudp provides alternative, simplified UDP-based session establishment mechanism for mosh-client and mosh-server.
This allows connecting mosh-client and mosh-server using only one UDP port, without SSH or another TCP connection. Authentication is based on one static keyfile.
--ping
mode to check server nondestructively).Use Github Releases to obtain pre-built version for your platform or install Rust toolchain and do cargo install moshudp
.
$ moshudp --help
Usage: moshudp <command> [<args>]
mosh-server and mosh-client interconnector based on UDP and a static key file
Options:
--help display usage information
Commands:
serve server mode
connect client mode
keygen generate 32-byte random file to use as a key on client and
server
$ moshudp serve --help
Usage: moshudp serve <addr> <keyfile> [-4] [-6]
server mode
Positional Arguments:
addr socket address to listen
keyfile 32-byte file to generate use as a key
Options:
-4, --ipv4 limit hostname resolution to IPv4 addresses
-6, --ipv6 limit hostname resolution to IPv6 addresses
--help display usage information
$ moshudp connect --help
Usage: moshudp connect <addr> <keyfile> [-4] [-6] [--ping]
client mode
Positional Arguments:
addr socket address to connect
keyfile 32-byte file to generate use as a key
Options:
-4, --ipv4 limit hostname resolution to IPv4 addresses
-6, --ipv6 limit hostname resolution to IPv6 addresses
--ping skip most of the algorithm, just send a ping
--help display usage information