Mount ftp shares

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#1
I normally use scp passwordless, as it's more secure, but today I needed to connect to a ftp server, so I had to do some research.
In order to mount ftp shares from an external ftp server, you need to run this small script:

Code:
cd /usr/src/
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum check-update
yum -y install curlftpfs fuse dkms dkms-fuse --enablerepo=rpmforge
mkdir /mnt/ftpshare1
curlftpfs 192.168.1.100/ftpshare1 /mnt/ftpshare1 -o tcp_nodelay,user=username:password,hard_remove,uid=`id -u`,gid=`id -g`,sync_read
This would mount the share ftpshare1 from ftp server 192.168.1.100 using username/password as credentials into the /mnt/ftpshare1 local directory.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,898
Messages
130,879
Members
17,560
Latest member
manuelc
Top