User Tools

Site Tools


filesystems:transfer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
filesystems:transfer [2019/05/16 14:21]
meesters [Transfer Options]
filesystems:transfer [2019/06/11 11:19] (current)
meesters [Using SSHFS]
Line 313: Line 313:
  
 {{ :​mogonfs.png |Exemplary navigation bar of Windows Explorer}} {{ :​mogonfs.png |Exemplary navigation bar of Windows Explorer}}
 +
 +
 +===== Using SSHFS =====
 +
 +[[https://​github.com/​libfuse/​sshfs|sshfs]] is way to mount the file system of Mogon((I or II)) on your local (linux) desktop. While it is better to log in for most purposes, when developing on your local desktop it offers to possibility to compile directly on Mogon.
 +
 +<WRAP center round info 90%>
 +We offer [[:​ides|IDEs]] and other [[:​profiling|development]] [[:​debugging|tools]] directly on Mogon, too.
 +</​WRAP>​
 +
 +The following instructions assume you are using a Debian-like system (e.g. [[https://​www.zdv.uni-mainz.de/​zdv-linux/​|the distro as by the ZDV]]). For other distributions similar options apply. ​
 +
 +First you need to install ''​sshfs'',​ if not already present:
 +
 +<code bash>
 +# apt install sshfs
 +</​code>​
 +
 +As ''​root''​ you need to create a mount point((The name ''​mogon''​ is merely a suggestion - you may choose a different name, of course.)):
 +
 +<code bash>
 +# mkdir /mnt/mogon
 +</​code>​
 +
 +Subsequently,​ again whilst being ''​root'',​ start ''​sshfs'':​
 +
 +<code bash>
 +# sshfs -o allow_other <​username>​@mogon:​. /mnt/mogon
 +</​code>​
 +
 +Note: This will mount your home directory ('':​.''​),​ alternatively [[filesystems:​overview|other mount points]] are valid.
 +
 +Now, for example, you can list your home directory on your local machine:
 +
 +<code bash>
 +$ ls /mnt/mogon/
 +</​code>​
 +
 +Or you can instruct your IDE to use a directory there ...
 +
 +To unmount perform:
 +
 +<code bash>
 +# umount /mnt/mogon
 +</​code>​
 +
 +In order to make this permanently,​ edit ''/​etc/​fstab''​ and add:
 +
 +<​code>​
 +sshfs#<​username>​@mogon:​. /mnt/mogon
 +</​code>​
  
  
filesystems/transfer.1558009299.txt.gz · Last modified: 2019/05/16 14:21 by meesters