====== 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 ==== Erreurs possibles ==== 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 Si vous avez cette erreur: simon@Marvin:~$ ls /mnt/o2switch ls: cannot access /mnt/o2switch: Transport endpoint is not connected Il faut se connecter en root et démonter le dossier. $ su password: # umount /mnt/o2switch simon@Marvin:~$ mount /mnt/o2switch fusermount: user has no write access to mountpoint /mnt/o2switch Il faut changer les droits sur le dossier : ===== Sources ===== * [[https://doc.ubuntu-fr.org/sshfs|sshfs (ubuntu-fr.org)]]