User Tools

Site Tools


cs:sshfs
Return to Home page

Differences

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

Link to this comparison view

cs:sshfs [2019/02/26 14:33] (current)
Line 1: Line 1:
 +====== SSHFS ======
 +sshfs is a network filesystem based on ssh.
  
 +To install sshfs:
 +<code bash>
 +apt-get install sshfs
 +</​code>​
 +
 +Add //user// to //fuse// group:
 +<code bash>
 +sudo gpasswd -a <​user>​ fuse
 +</​code>​
 +
 +
 +
 +===== share folder configuring ///​etc/​fstab//​ =====
 +
 +
 +Suppose to have a pc with a directory ///​home/​user/​shared///​ to share with other PCs.
 +The PC has address <​host/​ip_address>​
 +
 +The file ///​etc/​fstab//​ can be configured in the following way:
 +<code bash>
 +sshfs#​user@<​host/​ip_address>:/​home/​user/​shared /​home/​user/​shared fuse comment=sshfs,​users,​noauto,​exec,​uid=1000,​gid=1000,​reconnect,​transform_symlinks,​BatchMode=yes 0 0
 +</​code>​
 +
 +Since the mount command is not automatically executed (due to noauto option), to mount it use in the home directory the command:
 +<code bash>
 +mount /​home/​user/​shared
 +</​code>​
 +To automatically mount the filesystem you can add the command in //.bashrc// file.
 +To do not retype the password each time you perform the mounting operation you can use private and public key (see [[cs:​ssh]]).

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/sshfs?rev=1551188037&do=diff
/web/htdocs/www.skenz.it/home/data/pages/cs/sshfs.txt ยท Last modified: 2019/02/26 14:33 (external edit)

Privacy Policy