Edit remote files via FTP

I had this workable on MacOS because my source code editor supported FTP.
But on Linux Mint I found that my code editor (Geany) doesn’t support FTP and I needed solution (don’t want to switch to another editor).

The way is to mount remote ftp folder as local and edit files locally.

First of all install “curlftpfs”:

sudo apt-get install curlftpfs

Then create a local folder where you want to edit files and set 777 permissions to it:

mkdir project
chmod 777 project

Mount ftp folder:

curlftpfs ftp://<user>:<password>@<hostname>/project project/

Folder is mounted now, but I got an error:
fusermount: failed to open /etc/fuse.conf: Permission denied

For my case that’s because a user I logged in doesn’t exists in “fuse” group. Let’s check it and verify:

groups <myusername>

Here is the list of groups for this user: adm cdrom sudo dip plugdev lpadmin sambashare

So let’s add him to fuse group:

sudo addgroup mixa fuse

Hooray. Error gone, ftp folder mounted. That is what I was looking for.