Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] ShFs Mounting Everywhere
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Fri Nov 12, 2004 8:07 pm    Post subject: [HOWTO] ShFs Mounting Everywhere Reply with quote

ShFS
Ovvero come montare una directory remota in locale senza uso di samba ftp o simili ma del solo ssh

Premessa
Non so quanti di voi si sono posti la domanda del tipo:
"non ho un server ftp non posso trasferire via mail non penso nemmeno a usare cd o floppy tra due pc in rete e il samba non funziona l'unico mezzo che ho è l'ssh... come fare?"

Il programma
E' contenuto in portage e non è mascherato potete emergerlo tranquillamente con
Code:
emerge net-fs/shfs

Code:
*  net-fs/shfs
      Latest version available: 0.35
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 125 kB
      Homepage:    http://shfs.sourceforge.net/
      Description: Secure Shell File System
      License:     GPL-2


Installato
Una volta installato controlliamo che il modulo sia stato installato a dovere lanciamo un
Code:
modprobe shfs

E se va a buon fine possiamo fare in modo che questo venga fatto ad ogni boot in automatico così per il kernel 2.6:
Code:
 echo "shfs" >> /etc/modules.autoload.d/kernel-2.6

e così per il 2.4
Code:
 echo "shfs" >> /etc/modules.autoload.d/kernel-2.4


Montiamo una directory
Il tutto va eseguito da root.

Code:
#shfsmount UTENTE@HOST:PATHHOSTDIRECTORY PATHLOCALE


esempio pratico:
Code:
#shfsmount koma@serverino.mio:/home/koma /mnt/homekomaserverino

\\A quersto punto ci viene richiesta una password

Password:

\\Se è giusta siamo apposto
#


ATTENZIONE NON SI POSSONO USARE CARATTERI SPECIALI COME ~ (TILDE) O . (PUNTO)


sMontiamo una directory
Per smontare una directory molto più semplicemente diamo
Code:
#shfsumount PATHLOCALE


esempio pratico:
Code:
#shfsumount /mnt/homekomaserverino


ALERT
EDIT:
Snake mi ha fatto notare una cosina, usando la funzione nel kernel "local version append to kernel release" si crea un piccolo bug che sussiste con la maggior parte dei programmi che creano un modulo nel kernel, che alla lettura di uname -r che mostra la release del kernel finiscono per creare il modulo in una path sbagliata (invece di /lib/modules/*versionedelkernel* in
/lib/modules/*versionedelkernel*+quellocheavetescrittonell'append).
Avete due soluzioni:

a) Andate nella dir e copiate brutalmente il file shfs.ko nella corrispettiva directory del kernel giusta
b) non usate l'append

Entrambe le soluzioni lavorano perfettamente per quanto sporche (a) o radicali (b) non esistono altre soluzioni a quanto ne so apparte modificare il sorgente andando a inserire nella riga KERNEL si prendere il valore si /usr/src/linux ma penso sia uno sbattimento inutile.
Spero vi sia utile! Baci baci Koma
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD


Last edited by koma on Wed Jan 12, 2005 12:36 am; edited 1 time in total
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Fri Nov 12, 2004 10:10 pm    Post subject: Reply with quote

Interessante :)
_________________
Ciao da me!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Fri Nov 12, 2004 10:35 pm    Post subject: Reply with quote

Interessantissimo aggiunto ai post utilissimi sezione howto
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Fri Nov 12, 2004 10:47 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Interessantissimo aggiunto ai post utilissimi sezione howto
'ace
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
gaffiere
Guru
Guru


Joined: 13 Nov 2003
Posts: 406
Location: Provincia Milano

PostPosted: Fri Nov 12, 2004 10:53 pm    Post subject: Reply with quote

ficoso :) grazie mille!

see ya
_________________
Thomaz "Gaffiere"
Middle-Earth XP2200+, 1Gb Ram, 80Gb + 160Gb Hd, SbLive!, Nvidia 6800GT AGP8x
Gentoo Gnu/Linux 2.6.12-gentoo-r10
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Nov 14, 2004 8:18 am    Post subject: Reply with quote

Bello e utile! Complimentoni koma :D
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Nemesix2001
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2004
Posts: 108

PostPosted: Sun Nov 14, 2004 8:42 am    Post subject: Reply with quote

che dite quali sono i pro e contro tra shfs e nfs a questo punto??...
Ciao ciao
Back to top
View user's profile Send private message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Sun Nov 14, 2004 10:12 am    Post subject: Reply with quote

Bello, come va riguardo prestazioni di trasferimento e sicurezza?
_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Sun Nov 14, 2004 12:37 pm    Post subject: Reply with quote

Per la sicurezza e' ok perche' mi pare che usi ssh
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Sun Nov 14, 2004 1:02 pm    Post subject: Reply with quote

sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed Jan 12, 2005 12:37 am    Post subject: Reply with quote

aggiornato con l'alert grazie a snake
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed Jan 12, 2005 12:43 am    Post subject: Reply with quote

FonderiaDigitale wrote:
sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.

Aspetta non corriamo troppo ^_^ se vofliamo proprio trovare un'alternativa c'è ed è scp ed esistono moltissimi client windows e linux che lo supportano non serve alcun tipo di autorizzazione per giunta. La mia soluzione permette + che altro di avere la cartella SEMPRE mountata mentre scp è un compromesso file per file in consolle ^_^ e un compromesso client-adapted per qls os.
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Wed Jan 12, 2005 1:18 am    Post subject: Reply with quote

in konqueror, il protocollo e' fish://
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
Manuelixm
l33t
l33t


Joined: 03 Apr 2004
Posts: 832
Location: Brescia

PostPosted: Wed Feb 23, 2005 4:18 pm    Post subject: Reply with quote

Ciao a tutti, volevo suggerire l'aggiunta anche della faq ufficiale, per chi avesse dei problemi nel motare cartelle o altro.
Oggi ho avuto un problema nel montare il dvd da un pc ad un altro, l'user non poteva accedervi, guardando su questa faq ho risolto. Posto sotto il link, spero sia utile.

http://shfs.sourceforge.net/faq.html

Complimenti a koma per l'howto.
_________________
Linux user#370732
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Feb 23, 2005 4:30 pm    Post subject: Reply with quote

Non avevo mail letto questo thread :(

Davvero interessante :)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Dhaki
Guru
Guru


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Mon Jul 18, 2005 6:34 pm    Post subject: Reply with quote

Grazie koma dell'howto!!

P.S:
gutter wrote:
Non avevo mail letto questo thread :(

Anche io invece di "rotto" scrivo "rooto" :lol:
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Jul 19, 2005 7:46 am    Post subject: Reply with quote

Dhaki wrote:

Anche io invece di "rotto" scrivo "rooto" :lol:


Cose che capitano ;)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
masterbrian
Guru
Guru


Joined: 13 Feb 2004
Posts: 461

PostPosted: Tue Jul 19, 2005 8:43 am    Post subject: Reply with quote

FonderiaDigitale wrote:
sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.


Mai provato lo shell link di mc? Funziona esattamente nello stesso modo :) Non c'e' bisogno di creare il modulo per il kernel ed offre lo stesso tipo di sicurezza (basata su ssl).

Riguardo alle performance.. bhe non e' il massimo
_________________
[img:f6b0c3bcba]http://www.danasoft.com/sig/MasterBrian.jpg[/img:f6b0c3bcba]
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed Feb 01, 2006 4:17 pm    Post subject: Reply with quote

ho letto ora i ringraziamenti.... prego ;)
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum