Difference between revisions of "BwFileStorage SSHFS"

From Lsdf
(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...")
 
Line 48: Line 48:
 
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
 
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 (for example) : prefix
# ka_xy1234 : bwfilestorage user
+
# ka_xy1234 : bwfilestorage user
# xxxx/yyyy : user uid/gid
+
# xxxx/yyyy : user uid/gid
   
 
>mount /mnt/mountpoint
 
>mount /mnt/mountpoint

Revision as of 00:00, 23 February 2015

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