BwFileStorage SSHFS
From Lsdf
Jump to navigationJump to search
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 over command line
>mkdir mointpoint >sshfs prefix_loginname@bwfilestorage.lsdf.kit.edu: ./mountpoint prefix_loginame@bwfilestorage.lsdf.kit.edu's password:
for example:
>mkdir sshfs >sshfs ka_xy1234@bwfilestorage.lsdf.kit.edu: ./sshfs ka_xy1234@bwfilestorage.lsdf.kit.edu's password:
Mount over /etc/fstab
(as root)
>mkdir /mnt/mountpoint >cat .ssh/id_rsa.pub >> /pfad_to_local_user_home/.ssh/authorized_keys /etc/fstab sshfs#prefix_loginname@bwfilestorage.lsdf.kit.edu:/prefix/prefix_groupname/prefix_loginname /mnt/mountpoint fuse uid=xxxx,gid=yyyy,umask=0,allow_other,defaults,auto 0 0 >mount /mnt/mountpoint
prefix : fileset name per organization; prefix for login name and group name
for example:
>mkdir /mnt/mountpoint /etc/fstab sshfs#ka_xy1234@bwfilestorage.lsdf.kit.edu:/ka/ka_scc/ka_xy1234 /mnt/mountpoint fuse uid=7777,gid=12345,umask=0,allow_other,defaults,auto 0 0 >mount /mnt/mountpoint