marderh.blog

6/9/2004

SHFS

Filed under: — stefan @ 19:40

Wieder was nettes entdeckt.

Ein Netzwerkfilesystem über SSH. Nach den ganzen Spielereien a’la GmailFS (Pseudofilesystem zum Einbinden von googles´ freemail-Speicherplatz) u.ä., die mir in letzter Zeit über den Weg gelaufen sind, endlich wieder mal was brauchbares.

Shfs is a simple and easy to use Linux kernel module which allows you to mount remote filesystems using a plain shell (ssh) connection. When using shfs, you can access all remote files just like the local ones, only the access is governed through the transport security of ssh.

shfs kernel module

Testinstallation (auf Debian Testing) lässt sich problemlos an:

tar -xvf shfs-0.35.tar.gz
cd shfs-0.35
make
insmod ./shfs/shfs.o
./shfsmount/shfsmount sk@anderer.host:/home/sk /mnt/test

Top! Haut hin.

weg damit mit ./shfsmount/shfsumount /mnt/test

HmHm. Wie mach ich das jetzt mit (public/private)keys. In der Doku steht nix (zumindest find ich nix), also hilft nur herumprobieren und irgendwann entdecke ich die -c Option für mich:

shfsmount -c “ssh -i ~/.ssh/mein_private_key sk@ganz_anderer_host” /home/sk/ /mnt/test
Obiges tut, bei oberflächlicher Betrachtung, was es soll

Integration

Leave a Reply

Powered by WordPress