Mounting SFTP and FTP shares on Debian

Valic —  January 17, 2011 — 1 Comment

Mount ftp shares:

1. Install required packages

apt-get install curlftpfs

2. Create directory to mount the ftp site

mkdir /mnt/my-ftpsite

3. Add the curlftpfs mount into fstab to make it mount everytime the system is started (pico /etc/fstab)

curlftpfs#{username}:{password}@{host} /mnt/my-ftpsite fuse rw,allow_other,uid={userid} 0 0

4. Mount the ftp site

mount /mnt/my-ftpsite

Nou you will have acces to your ftp.

Mount sftp(secure ftp) shares:

1. Install required packages

apt-get install sshfs

2. Create directory to mount the ftp site

mkdir /mnt/my-sftpsite

3. Add the sshfs mount into fstab to make it mount everytime the system is started (pico /etc/fstab)

sshfs {username}:{password}@{host}:target_folder /mnt/my-sftpsite

4. Mount the sftp site

mount /mnt/my-sftpsite

Nou you will have acces to your sftp.

Enjoy!

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

One response to Mounting SFTP and FTP shares on Debian

  1. Thank you very much. Its working on Debian Squeeze perfectly.

Leave a Reply