User Tools

Site Tools


cs:sshfs
Return to Home page
no way to compare when less than two revisions

Differences

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


cs:sshfs [2024/04/08 22:34] (current) – created - external edit 127.0.0.1
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?do=diff&rev2%5B0%5D=&rev2%5B1%5D=1551188037&difftype=sidebyside
/web/htdocs/www.skenz.it/home/data/pages/cs/sshfs.txt · Last modified: 2024/04/08 22:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki
Privacy Policy