You can consider this extension with Ubuntu https://extensions.gnome.org/extension/1319/gsconnect/

Alternatively, can you not just use a USB cable and allow file transfer permissions on the phone?