RHEL securely mount remote Linux / UNIX directory or file system using SSHFS
Make sure you have the rpmforge repo installed. If not add
$ echo “# Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1″ > /etc/yum.repos.d/rpmforge.repo
Install
$ yum –enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse$ insmod /lib/modules/2.6.18-8.el5/extra/fuse.ko
Now you have working setup, all you need to do is mount a filesystem under Linux. First create a mount point:
$ mkdir /data
Now mount a remote server filesystem using sshfs command:
$ sshfs root@192.168.50.87:/what2mount /data
check if mounted by the mount command
Now you can access your filesystem securely using Internet or your LAN
$ cd /data
$ touch blah
To umount cd to home folder
$ umount /data
-
Recent
- Linux disk cache
- redhat/centos build kernel rpm
- KVM on centos5
- File Password Protection
- Building modules for rhel5 kernel
- Open SSL help
- Extracting certificates from java keystore to use in apache.conf
- What is bonding?
- Xen rescue paravirtualization
- flash player on firefox 64 bite
- Samba4 HOWTO + Fedora
- MRTG HowTo
-
Links
-
Archives
- July 2010 (3)
- March 2010 (1)
- January 2010 (5)
- December 2009 (1)
- April 2009 (1)
- January 2009 (1)
- November 2008 (12)
-
Categories
-
RSS
Entries RSS
Comments RSS