How to install and Setup CurlFTPFS

CurlFTPFS is a very good tool to mount remote FTP directory to the local file-system. CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl. CurlFtpFS differentiates itself from other FTP filesystems because it features:

  • SSLv3 and TLSv1 support
  • connecting through tunneling HTTP proxies
  • automatically reconnection if the server times out
  • transform absolute symlinks to point back into the ftp file system
Use the following commands are used to install the package:
yum install glib2-devel  \

yum install fuse-devel  \

yum install libcurl-devel \  
wget http://sourceforge.net/projects/curlftpfs/files/latest/download  \

mv download curlftpfs-0.9.2.tar.gz \

tar xvzf curlftpfs-0.9.2.tar.gz  \

cd curlftpfs-0.9.2  \

./configure  \

make  \

make install
After you complete the script execution you need to setup/configure your FTP source.

1 - Create directory (this will be the mount point).

mkdir /tmp/mountFTP

2 - Connect to the FTP Servers

  • this is how you would connect manually to the FTP Folder.
curlftpfs -d -v -o allow_other <username:<password@<ftp-server/folder </tmp/mountFTP (any mount point)
Note:-ftp uses unencrypted passwords so anyone can intercept your password.

3 - Mount FTP Folder permanently by adding it to the /etc/fstab file.

  • Create the .netrc conf file in your user home folder
cat .netrc
#FTP Server 
machine ftp.server.com
login username
password userpassword

#Change the permission on the file
chmod 600 .netrc
  • Add this line to the /etc/fstab file 
curlftpfs#ftp-server/folder /tmp/mountFTP fuse allow_other,umask=0022 0 0
  • Now to mount it run 
mount -a