sshfs
Ceci est une ancienne révision du document !
Table des matières
La commande "sshfs"
La page de man de sshfs.
Installation
On installe :
(client) $ sudo apt-get install sshfs OU (client) # yum install sshfs
Utilisation
On crée ensuite un point de montage et on se connecte :
(client) $ mkdir pointMontage (client) $ sudo sshfs -d -o allow_other user@192.168.yy.xx:/home/user/dossier /home/client/pointMontage
Il est pas mal intéressant de se connecter au serveur via une clé ssh.
Montage automatique au démarrage
(client) # vim /etc/fstab
sshfs#USER@SERVEUR.COM:/home/user/dossier /home/user/emplacement fuse port=22,user,noatime,allow_other,_netdev 0 0
Si vous avez cette erreur :
(client) :~$ mount /home/user/emplacement fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
Il faut décommenter la dernière ligne du fichier /etc/fuse.conf :
(client) # vim /etc/fuse.conf
# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE) # Set the maximum number of FUSE mounts allowed to non-root users. # The default is 1000. #mount_max = 1000 # Allow non-root users to specify the allow_other or allow_root mount options. user_allow_other
Sources
sshfs.1483795858.txt.gz · Dernière modification : (modification externe)
