User Tools

Site Tools


cs:sshfs
Return to Home page

SSHFS

sshfs is a network filesystem based on ssh.

To install sshfs:

apt-get install sshfs

Add user to fuse group:

sudo gpasswd -a <user> fuse

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:

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

Since the mount command is not automatically executed (due to noauto option), to mount it use in the home directory the command:

mount /home/user/shared

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 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
/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