On Server sudo apt install mosh sudo ufw allow from 192.168.1.0/24 to any port 60000:61000 proto udp On Client sudo apt install mosh mosh rpi