- Go to your Nextcloud account security settings using a browser. Create a new app password.
- Open Nautilus and select Connect to Server from the left sidebar.
substituting YOUR-DOMAIN.TLD/PATH and YOUR-USERNAME as needed. If your server is not using https, substitute davs:// with dav://. (Also, shame on you.)
- Enter your username and app password (created at step 1, above) when prompted.
How to delete unwanted dav mount from Nautilus sidebar (Places) in Ubuntu 16.04
I had previously linked a Nextcloud account somehow (possibly through Online Accounts in Gnome’s Control Center) so that it was present in Nautilus, and there was no GUI means to remove it.
What I did to finally make it go away was to first open Seahorse and the Login keyring therein, and delete all keys related to the account. I then deleted
accounts.conf only had the unwanted account in it, so you need to edit it instead of deleting it if yours has other accounts that you wish to preserve.
Deleting the keys (in Seahorse) may not be necessary, but didn’t hurt either.