You are not logged in.

#1 2004-12-18 03:06:55

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

shfs - easy mounting filesystems through ssh

This is a small and easy to use kernel module and tools for mounting remote filesystems through ssh connection.
Latest patches are already included.

shfs PKGBUILD

pkgname=shfs
pkgver=0.35
pkgrel=2
pkgdesc="Kernel module for mounting remote filesystems using ssh"
url="http://shfs.sf.net"
depends=('openssh' 'glibc')
install=install.shfs
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz 
http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-0.35/df.diff 
http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-0.35/space_chars.diff 
http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-0.35/uidgid32.diff 
)
md5sums=('016f49d71bc32eee2b5d11fc1600cfbe' '29b3f063e5feb8c259abc86d07f92f85'
         'e5f37f793e95acdfd8e89affe9949160' '29e5b080a1744f8283b8f55d5b904a60')


build() {
    cd $startdir/src/$pkgname-$pkgver
    patch -p0 -i ../df.diff
    patch -p0 -i ../space_chars.diff
    patch -p0 -i ../uidgid32.diff
    make || return 1
    make ROOT=$startdir/pkg MAN_PAGE_DIR=/usr/man install
}

install.shfs

# arg 1:  the new package version
post_install() {
  depmod -a
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  depmod -a
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {
  depmod -a
}

op=$1
shift
$op $*

For more info check shfs webpage

Offline

#2 2004-12-19 15:03:29

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: shfs - easy mounting filesystems through ssh

Hey, this is nice. Finally I might be able to use something other than NFS(It always takes ages to start it up).

Thanks for the link

Offline

#3 2004-12-19 16:46:01

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: shfs - easy mounting filesystems through ssh

ravster wrote:

Hey, this is nice. Finally I might be able to use something other than NFS(It always takes ages to start it up).

Thanks for the link

make sure you have portmap running when you use NFS! smile


To err is human... to really foul up requires the root password.

Offline

#4 2004-12-19 17:52:52

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: shfs - easy mounting filesystems through ssh

also make sure network is up and running before starting nfsd, otherwise it takes about five minutes. smile

Offline

#5 2004-12-19 22:43:40

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: shfs - easy mounting filesystems through ssh

Hmm..
Are there any comparisons with nfs for speed/reliability?
I can imagine compression might help for poor connections, but ssh has it's own overhead too. It might just be better to tunnel nfs..

Has anyone tried this yet? Care to share your experience? How do you like it?
I am always intruiged by different ways to secure things...especially considering I have been pondering securing ltsp stuff lately.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2004-12-19 22:49:12

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: shfs - easy mounting filesystems through ssh

cactus wrote:

Hmm..
Are there any comparisons with nfs for speed/reliability?
I can imagine compression might help for poor connections, but ssh has it's own overhead too. It might just be better to tunnel nfs..

Has anyone tried this yet? Care to share your experience? How do you like it?
I am always intruiged by different ways to secure things...especially considering I have been pondering securing ltsp stuff lately.

I'm just guessing, but I think this shfs might prove a bit slower than NFS with old endpoints (like in my case), due to encryption and so forth...
On the other hand, it's probably a lot more easy to use than a encrypted nfs tunnel (with openvpn or similar) smile


To err is human... to really foul up requires the root password.

Offline

#7 2004-12-20 00:07:44

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: shfs - easy mounting filesystems through ssh

AFAIK shfs is indeed quite slow when transferring large files (people report about 2MB/s). But it's one of the easiest to setup so it's just your choice (right tool for the right job).

If you only want to copy some files then scp is the best tool IMO. It's also reported to be the fastest (BTW it can eat all CPU too :-)).

IMO shfs is something between scp and encrypted nfs/samba/... It's a good tool for quick mounting of remote directories if the coping speed is not the most important thing for you (network admins should like it - easy and secure configs editing, mounting remote abs directory trees, etc. etc.).

Gentoo forums have plenty of threads about shfs (opinions, comparisions, examples of fstab, etc.) - just search for shfs...

EDIT: this is a good place to start reading about different filesystems including encrypted fs:
http://www.linux-sec.net/FileSystem/
(steganographic fs? :-))

Offline

#8 2004-12-20 15:10:59

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: shfs - easy mounting filesystems through ssh

oscar wrote:

make sure you have portmap running when you use NFS! smile

Yes, I do have portmap running, since if it isn't running an error is returned. also, the network is on. What I have been doing lately is using sftp, since it keeps things simple for me. I don't like scp(I have to know the exact path to use it, and to do that I open another VC on ssh :oops: )
I think I'll try shfs, and since I was trying to figure out how to use the kernel-mode nfs in any case, I might as well use this yikes .

Offline

#9 2005-03-06 01:27:31

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: shfs - easy mounting filesystems through ssh

you should add

depmod -a

to the pkgbuild... everytime I reinstall for a new kernel I forget and end up trying to figure out why stuff won't mount and I can't modprobe shfs. lol, yes I'm that retarded  lol

Offline

#10 2005-03-06 01:58:41

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: shfs - easy mounting filesystems through ssh

Done :-)

Offline

#11 2005-03-06 20:15:57

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: shfs - easy mounting filesystems through ssh

Works great smile

Thanks a bunch.

Offline

Board footer

Powered by FluxBB