BwFileStorage SSHFS: Difference between revisions
From Lsdf
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
<h3>Mount over command line</h3> |
<h3>Mount over command line</h3> |
||
<pre> |
|||
>mkdir mointpoint |
|||
>sshfs prefix_loginname@bwfilestorage.lsdf.kit.edu: ./mountpoint |
|||
prefix_loginame@bwfilestorage.lsdf.kit.edu's password: |
|||
</pre> |
|||
'''for example:''' |
|||
<pre> |
<pre> |
||
>mkdir sshfs |
>mkdir sshfs |
||
Line 40: | Line 47: | ||
<h3>Mount over /etc/fstab</h3> |
<h3>Mount over /etc/fstab</h3> |
||
(as root) |
|||
<pre> |
<pre> |
||
>mkdir /mnt/mountpoint |
>mkdir /mnt/mountpoint |
||
Line 46: | Line 53: | ||
/etc/fstab |
/etc/fstab |
||
sshfs# |
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 |
||
# ka (for example) : prefix |
|||
# ka_xy1234 : bwfilestorage user |
|||
# xxxx/yyyy : user uid/gid |
|||
>mount /mnt/mountpoint |
>mount /mnt/mountpoint |
||
</pre> |
|||
<hr> |
|||
prefix : [https://www.bwidm.de/attribute/belegung-fuer-bwidmorgid/ fileset name per organization; prefix for login name and group name] |
|||
<hr> |
|||
<br> |
|||
'''for example:''' |
|||
<pre> |
|||
>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 |
|||
</pre> |
</pre> |
||
Latest revision as of 22:17, 28 March 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 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