SSH   发布时间:2019-10-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了通过SSHFS在RHEL中安全的挂载远程Linux/UNIX目录或文件系统--转载大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

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 Free,Open 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  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.gzUntar source code:# tar -zxvf fuse-2.6.5.tar.gzCompile 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.confAppend following path:/usr/local/libRun ldconfig:# ldconfig

Step # 3: Install sshfs

Now fuse is loaded and ready to use. Now you need sshfs to  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.gzUntar source code:# tar -zxvf sshfs-fuse-1.7.tar.gzCompile and Install fuse:# cd sshfs-fuse-1.7# ./configure# make# make install

@H_743_2@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/remoteNow mount a remote server filesystem using sshfs command:# sshfs vivek@rock.nixcraft.in: /mnt/remoteWhere,

  • 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/remoteor# umount /mnt/remote

http://www.cyberciti.biz/tips/wp-comments-post-mondayblues.%3Ca%20href=http://biancheng.dnbcw.info/php/%3Ephp%3C/a%3E" method="post">

XHTML: You can use these tags: title=""> title=""> ym title="">

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

大佬总结

以上是大佬教程为你收集整理的通过SSHFS在RHEL中安全的挂载远程Linux/UNIX目录或文件系统--转载全部内容,希望文章能够帮你解决通过SSHFS在RHEL中安全的挂载远程Linux/UNIX目录或文件系统--转载所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: