SSHFS on SLES 10 SP1

1. Download SLED-10-SP1-x86-DVD1.iso from Novell (registration required). Mount the iso using mount -o loop

mkdir /mnt/sles
mount -o loop /path/to/SLED-10-SP1-x86-DVD1.iso /mnt/sles
cd /mnt/sles

2. Install the RPM
rpm -ivh suse/i586/fuse-devel-2.5.2-12.2.i586.rpm

3. Download sshfs from

http://download.opensuse.org/distribution/11.0/repo/src-oss/suse/src/sshfs-1.9-38.1.src.rpm
Note: (can’t use latest version due to bug https://www.scientificlinux.org/bug.feature/bugs/20/)

4. rpmbuild as user (Refer: http://dag.wieers.com/howto/bits/rpm-build-user.php)

rpm -i sshfs-1.9-38.1.src.rpm
cd ~/redhat/SPECS

rpmbuild -bb sshfs.spec

5. Install the RPM

rpm -ivh ~/redhat/RPMS/i586/sshfs-1.9-38.1.i586.rpm

6. Create mount point and set permissions

mkdir /media/work
chown -R user.group /media/work

7. Mount the ssh directory with
sshfs -o allow_other -o idmap=user -o reconnect -o uid=1001 -o gid=1001 user@sshserver:/var/www/html/ /media/work

For sharing the files via NCP on OES2

8. Create the NCP share using Remote Manager and point it to /media and not the /media/work (fails with error 150)

9. Adjust trustee rights to /media/work and add group

Mount at boot

The mount command would prompt for a password. This can be avoided if the ssh server supports public key authentication. The server I am mounting the SSH filesystem does not support this. Hence I will have to mount this manually after every server reboot. Haven’t figured a way around this. It would be possible to put a script under /etc/init.d and run it at boot. Haven’t tested this yet.

Reference:
http://www.linuxjournal.com/node/8904/print

0 Responses to “SSHFS on SLES 10 SP1”



  1. No Comments Yet

Leave a Reply