You are not logged in.
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
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
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!
To err is human... to really foul up requires the root password.
Offline
also make sure network is up and running before starting nfsd, otherwise it takes about five minutes.
Offline
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
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)
To err is human... to really foul up requires the root password.
Offline
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
make sure you have portmap running when you use NFS!
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 .
Offline
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
Offline
Done :-)
Offline
Works great
Thanks a bunch.
Offline