Mosh configuration

From wikinotes

Client

mosh respects your ~/.ssh/config.

Server

Firewall

By default, the mosh client client communicates out over UDP 60000-61000.
your client must be able to communicate outwards, and your server inwards.

server example:

# /etc/pf.conf
pass in on $ext_if proto udp to $ext_ip port 60000:61000

# /etc/nftables.conf
udp dport 60000:61000 ip4 daddr $ext_ip accept