Il wiki con tanti suggerimenti tecnici
Il comando sshfs, come montare una cartella in ssh
sshfs root@10.1.2.2:/usr/local/tomcat /mnt/tmp/
Permette l'accesso anche ad altri utenti (ad esempio utile quando bisogna condividere una cartella con Apache o Tomcat):
Se e' necessario accedere come altro utente su un filesystem montato come utente 'user' ad esempio.
Moficare il file
/etc/fuse.conf
attivando l’opzione
user_allow_other
e quindi effettuando un test con il mount con l’opzione allow_other
sshfs -o allow_other user@172.16.1.26:/opt/app /mnt/db/
modificare il file fstab per renderlo definitivo:
sshfs#yser@172.16.1.26:/opt/app /mnt/db fuse defaults,identityfile=/home/user/.ssh/id_rsa,allow_other 0 0
Indietro