Для восстановления конфигурации «Шлюза» следует:
/etc/termidesk/termidesk-gateway.conf
termidesk-gateway
sudo systemctl restart termidesk-gateway