使用sshfs挂载服务器文件系统,用curlftpfs挂载FTP服务器

  • 使用sshfs挂载服务器文件系统
sudo apt-get install sshfs
sshfs user@hostname:path /mnt/data

 centos:(0.5.2这个才行,新版本反而不行~~~)

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
yum install fuse-sshfs
  • 用curlftpfs挂载FTP服务器
  1. 安装curlftpfs
    1 sudo apt-get install curlftpfs
  2. 挂载FTP服务器
    1 curlftpfs ftp://username:password@192.168.1.1 /ftp
  3. 卸载挂载
    fusermount -u /ftp
原文地址:https://www.cnblogs.com/trying/p/3115442.html