You can easily mount remote server file system or your own home directory using special sshfs and fuse tools.

FUSE - Filesystem in Userspace

FUSE is a Linux kernel module also available for FreeBSD, OpenSolaris and Mac OS X that allows non-privileged users to create their own file systems without the need to write any kernel code. This is achieved by running the file system code in user space, while the FUSE module only provides a “bridge” to the actual kernel interfaces. FUSE was officially merged into the mainstream Linux kernel tree in kernel version 2.6.14.

You need to use SSHFS to access to a remote filesystem through SSH or even you can use Gmail account to store files.

Following instructions are tested on CentOS, Fedora Core and RHEL 4/5 only. But instructions should work with any other Linux distro without a problem.

Step # 1: Download and Install FUSE

Visit fuse home page and download latest source code tar ball. Use wget command to download fuse package:
# wget http://superb-west.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.5.tar.gz
Untar source code:
# tar -zxvf fuse-2.6.5.tar.gz
Compile and Install fuse:
# cd fuse-2.6.5
# ./configure
# make
# make install

Step # 2: Configure Fuse shared libraries loading

You need to configure dynamic linker run time bindings using ldconfig command so that sshfs command can load shared libraries such as libfuse.so.2:
# vi /etc/ld.so.conf.d/fuse.conf
Append following path:
/usr/local/lib
Run ldconfig:
# ldconfig

Step # 3: Install sshfs

Now fuse is loaded and ready to use. Now you need sshfs to access and mount file system using ssh. Visit sshfs home page and download latest source code tar ball. Use wget command to download fuse package:
# wget http://easynews.dl.sourceforge.net/sourceforge/fuse/sshfs-fuse-1.7.tar.gz
Untar source code:
# tar -zxvf sshfs-fuse-1.7.tar.gz
Compile and Install fuse:
# cd sshfs-fuse-1.7
# ./configure
# make
# make install

Mounting your remote filesystem

Now you have working setup, all you need to do is mount a filesystem under Linux. First create a mount point:
# mkdir /mnt/remote
Now mount a remote server filesystem using sshfs command:
# sshfs vivek@rock.nixcraft.in: /mnt/remote
Where,

  • sshfs : SSHFS is a command name
  • vivek@rock.nixcraft.in: - vivek is ssh username and rock.nixcraft.in is my remote ssh server.
  • /mnt/remote : a local mount point

When promoted supply vivek (ssh user) password. Make sure you replace username and hostname as per your requirements.

Now you can access your filesystem securely using Internet or your LAN/WAN:
# cd /mnt/remote
# ls
# cp -a /ftpdata . &

To unmount file system just type:
# fusermount -u /mnt/remote
or
# umount /mnt/remote

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

来源:http://biancheng.dnbcw.info/win2003/272443.html

最新文章

  1. Linux常用指令指南,终端装逼利器
  2. react动画难写?试试react版transformjs
  3. Node.js 常用工具 util
  4. UltraEdit打开UTF-8文件后显示中文乱码的问题
  5. 【转载】为什么CPU有多层缓存
  6. poj 1089 Intervals
  7. 并发情况下synchronized死锁
  8. Speech Module
  9. svg学习之旅(1)
  10. RabbitMQ入门-初识RabbitMQ
  11. Java 编写小程序,下载指定网页上的所有图片
  12. Linux脚本入门(1)
  13. .net之设计模式
  14. 【读书笔记】iOS-网络-底层网络
  15. DPDK QoS_meter 源码阅读
  16. 国产Linux滋生腐败
  17. AP_创建标准发票后会计科目的变化(概念)
  18. C++字符串转化为数字的库函数
  19. Angular实现多标签页效果(路由重用)
  20. kali视频学习(11-15)

热门文章

  1. jquery插件,美化select标签
  2. 自己挖坑自己跳 之JsonMappingException: (was java.lang.NullPointerException) (through reference chain:)
  3. python处理csv数据
  4. hibernate api
  5. Java 理论与实践: JDK 5.0 中更灵活、更具可伸缩性的锁定机制
  6. WordPress A Forms插件HTML注入漏洞和跨站请求伪造漏洞
  7. 从PowerDesigner概念设计模型(CDM)中的3种实体关系说起
  8. (转载)JavaScript中定义变量
  9. activity+fragment多次切换出现页面空白问题
  10. 实现DataGridView实时更新数据