How to use FTP filesystem on Ubuntu using CurlFtpFS
|
|
Some web hosting company do not offer shell access (SSH or Telnet) to your shared hosting account for security reasons, making it a bit harder for you to do regular file maintenance for your web account. Although the use of regular FTP client is adequate for most cases, some people still prefer to manipulate files directly using standard Unix tools (probably because of old habits).
Fortunately, there’s CurlFtpFS which allow you to mount remote ftp account as a standard filesystem on your Linux operating system.
Using CurlFtpFS
First of all you need to install CurlFtpFS, which in case of Ubuntu or Debian based operating system is to run ‘sudo apt-get install curlftpfs‘.
Alternatively, you can use Synaptic to install CurlFtpFS.
Assuming you’ve successfully installed curlftpfs, all you need to do in order to mount ftp locally is to to run these commands.
mkdir hostr
sudo curlftpfs -o allow_other ftp://user:[email protected] host
user:pass is the username and password to log into ftp account.
After that, you can change your working directory to the mount-point and use the regular unix utilities to work on the files that normally accessible on the FTP protocol. After you’re done, you can unmount it by running the usual “sudo umount [mountpoint]” command
Using CurlFtpFS in fstab
You can add curlftpfs to fstab for automatic mounting by using this line :
curlftpfs#user:[email protected] /mnt/host fuse rw,uid=500,user,noauto 0 0
Note: Please refer to CurlFtpFS website for further reference.
Thanks for reading this post, hopefully this will get you started to use curlftpfs FTP based filesystem in your Linux operating system.
[tags]filesystem,linux,debian,ubuntu,curl,fuse,mount,unix[/tags]
Keep updated with the latest posts, be a part of over 1,000 subscribers! :
Subscribe to your email


May 31st, 2007 at 8:27 am
Nice post :D, It is very convenient for us to do file transfer by applying that.
May 31st, 2007 at 11:57 am
Interesting article. Another way to do this is from the Places menu in Gnome. You can access remote systems via ftp, ssh, smb, and others.
June 4th, 2007 at 8:01 pm
w00f w00f
June 12th, 2007 at 2:05 am
[...] How to use FTP filesystem on Ubuntu using… Some web hosting company do not offer shell access (SSH or Telnet) … mountpoint †command Using CurlFtpFS in fstab You can add curlftpfs to fstab for automatic mounting [...]
June 13th, 2007 at 5:27 am
Thanks for the info!
http://www.getftp.info
July 11th, 2007 at 12:37 pm
[...] Your page is on StumbleUpon [...]
October 2nd, 2007 at 8:34 pm
[...] Ho googlato un po' e ho trovato curlftpfs (usa fuse e libcurl).Guarda qui. [...]
October 5th, 2007 at 10:24 am
[...] How to use FTP filesystem on Ubuntu using CurlFtpFS : mypapit gnu/linux blog How to use FTP filesystem on Ubuntu using CurlFtpFS : mypapit gnu/linux blog … manipulate [...]
February 28th, 2008 at 11:05 pm
Try to use LftpFS
April 21st, 2008 at 12:34 am
the ftp://user:password@host/ syntax lets any user on your system see username, password and what host your are connecting to.
Use a ~/.netrc file, and chmod it to 0600
July 29th, 2009 at 1:16 am
[...] http://blog.mypapit.net/2007/05/how-to-use-ftp-filesystem-on-ubuntu-using-curlftpfs.html [...]
November 9th, 2010 at 5:40 pm
great tutorial thanks…… But
sudo curlftpfs -o allow_other ftp://user:[email protected] host
this command should b replaced by
sudo curlftpfs -o allow_other ftp://user:[email protected] hostr
as the directory made was hostr(mkdir hostr) or the error would b
“fuse: bad mount point `host’: No such file or directory”
December 2nd, 2010 at 3:37 pm
what’s the usage of that noauto?
and also i foud out there’s some ppl using
this options….
“fuse rw,allow_other,auto,user,_netdev 0 0″
without using “uid”
what the adv and disadvtg anyway?
March 28th, 2011 at 7:53 pm
[...] FTP on Ubuntu using CurlFtpFs. Tags: Backup, Code, Linux, Networking, Scripting Category: Config files, Howto You can follow [...]