BwFileStorage SSHFS

From Lsdf
Revision as of 23:07, 22 February 2015 by Obholz (talk | contribs) (Created page with "<H1>Using SSHFS for UNIX Client</H1> <H2>Installation</H2> '''Downloads:''' http://fuse.sourceforge.net/sshfs.html <br> '''Example:''' <pre> >wget http://sourceforge.net/pro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Using SSHFS for UNIX Client

Installation

Downloads: http://fuse.sourceforge.net/sshfs.html
Example:

>wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz/download
>wget http://sourceforge.net/projects/fuse/files/sshfs-fuse/2.5/sshfs-fuse-2.5.tar.gz/download

>tar –xzvf fuse-2.9.3.tar.gz
>cd fuse-2.9.3
>yum install spice-glib-devel.x86_64
>./configure --prefix=/usr/local
>make
make install (as root)

>echo /usr/local/lib > /etc/ld.so.conf.d/fuse.conf
>ldconfig

>tar -xzvf sshfs-fuse-2.5.tar.gz
>cd sshfs-fuse-2.5
>./configure --prefix=/usr/local
>make
>make install

Mount a Share over SSHFS

Mount over command line

>mkdir sshfs
>sshfs ka_xy1234@bwfilestorage.lsdf.kit.edu: ./sshfs
ka_xy1234@bwfilestorage.lsdf.kit.edu's password:


Mount over /etc/fstab

Example: (as root)

>mkdir /mnt/mountpoint
>cat .ssh/id_rsa.pub >> /pfad_to_local_user_home/.ssh/authorized_keys

/etc/fstab
sshfs#ka_xy1234@bwfilestorage.lsdf.kit.edu:/ka/ka_groupname/ka_xy1234 /mnt/mountpoint fuse uid=xxxx,gid=yyyy,umask=0,allow_other,defaults,auto 0 0
# ka  (for example)                : prefix
# ka_xy1234                         : bwfilestorage user
# xxxx/yyyy                          : user uid/gid

>mount /mnt/mountpoint