{"id":1748,"date":"2015-02-19T17:12:06","date_gmt":"2015-02-19T15:12:06","guid":{"rendered":"http:\/\/blog.sfsoft.it\/?p=1748"},"modified":"2015-02-19T17:12:06","modified_gmt":"2015-02-19T15:12:06","slug":"fare-il-mount-di-un-percorso-remoto-tramite-ssh-su-ubuntu-14-04","status":"publish","type":"post","link":"http:\/\/www.sfsoft.it\/blog\/2015\/02\/19\/fare-il-mount-di-un-percorso-remoto-tramite-ssh-su-ubuntu-14-04\/","title":{"rendered":"Fare il mount di un percorso remoto tramite SSH su Ubuntu 14.04"},"content":{"rendered":"<p>Aggiorno l&#8217;articolo\u00a0<a title=\"Fare il mount di un percorso SSHFS con FUSE\" href=\"http:\/\/blog.sfsoft.it\/2010\/10\/07\/fare-il-mount-di-un-percorso-sshfs-con-fuse\/\" target=\"_blank\">Fare il mount di un percorso SSHFS con FUSE<\/a> adattandolo alla versione Ubuntu 14.04 Trusty Tahr.<\/p>\n<p>E&#8217; possibile sfruttare la connessione SSH per eseguire il mount di un percorso remoto tra due host Linux utilizzando il pacchetto <em>sshfs<\/em>:<\/p>\n<pre class=\"lang:default decode:true \">sudo apt-get install sshfs<\/pre>\n<p>E&#8217; possibile eseguire il mount richiamandolo a mano quando serve:<\/p>\n<pre class=\"lang:default decode:true\"># eseguire il mount della home remota\r\nsshfs username@hostname: mountpoint\r\n\r\n# eseguire il mount di un path assoluto remoto\r\nsshfs username@hostname:\/my\/path mountpoint\r\n\r\n# eseguire l' umount\r\nfusermount -u mountpoint<\/pre>\n<p>Oppure \u00e8 possibile impostare il <em>mount<\/em> tramite <em>fstab<\/em>:<\/p>\n<pre class=\"lang:default decode:true\"># allow_other: permette di accedere al path anche a chi non \u00e8 root\r\n# user: permette di eseguire il mount anche a chi non \u00e8 root\r\n# uid e gid: impostano i permessi owner a un altro utente\r\nsshfs#user@host:\/my\/path mountpoint fuse _netdev,defaults,noauto[,allow_other][,user][,uid=username][,gid=usergroup] 0 0<\/pre>\n<p>E richiamare il <em>mount<\/em> quando serve chiamando:<\/p>\n<pre class=\"lang:default decode:true\">mount mountpoint<\/pre>\n<p>Per eseguire invece il <em>mount<\/em> automatico e quindi senza la richiesta della password \u00e8 possibile utilizzare l&#8217;autenticazione tramite le chiavi SSH, vedere eventualmente l&#8217;articolo <a title=\"Creare connessioni SSH senza password\" href=\"http:\/\/blog.sfsoft.it\/2010\/10\/10\/creare-connessioni-ssh-senza-password\/\" target=\"_blank\">Creare connessioni SSH senza password<\/a>.<\/p>\n<p>E richiamarlo poi al <em>boot<\/em> tramite <em>rc.local<\/em>:<\/p>\n<pre class=\"lang:default decode:true\">mount mountpoint<\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/fuse.sourceforge.net\/sshfs.html\" target=\"_blank\">http:\/\/fuse.sourceforge.net\/sshfs.html<\/a><\/p>\n<p><a href=\"http:\/\/www.fullo.net\/blog\/archives\/2006\/05\/09\/montare-un-disco-remoto-con-fuse-e-sshfs\/\" target=\"_blank\">http:\/\/www.fullo.net\/blog\/archives\/2006\/05\/09\/montare-un-disco-remoto-con-fuse-e-sshfs\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aggiorno l&#8217;articolo\u00a0Fare il mount di un percorso SSHFS con FUSE adattandolo alla versione Ubuntu 14.04 Trusty Tahr. E&#8217; possibile sfruttare la connessione SSH per eseguire il mount di un percorso remoto tra due host Linux utilizzando il pacchetto sshfs: sudo apt-get install sshfs E&#8217; possibile eseguire il mount richiamandolo a mano quando serve: # eseguire [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,3,23],"tags":[24,16,8,19,30,17,190,5],"_links":{"self":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1748"}],"collection":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/comments?post=1748"}],"version-history":[{"count":1,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1748\/revisions"}],"predecessor-version":[{"id":1750,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/1748\/revisions\/1750"}],"wp:attachment":[{"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/media?parent=1748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/categories?post=1748"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/tags?post=1748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}