Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting filesystems through ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fillepe The Mexican
n00b
n00b


Joined: 12 Mar 2004
Posts: 71

PostPosted: Wed Sep 22, 2004 10:25 am    Post subject: Mounting filesystems through ssh Reply with quote

At varsity we have fairly strict disk quotas on the network filesystem, I thought the best way to get around this would be to mount the filesystem of my home machine locally.

The pc's are redhat/gnome based boxes running kernel 2.4. I looked at a tool for doing this sshfs but it seems to require insertion of a kernel module which I don't think I am able to do because I am but a lowly student.

Is there anyway to do such a thing without having to load kernel modules etc?
Back to top
View user's profile Send private message
silentbob
Apprentice
Apprentice


Joined: 09 Nov 2003
Posts: 159
Location: UK

PostPosted: Wed Sep 22, 2004 10:50 am    Post subject: Reply with quote

If your uni machines have samba installed you could setup your home data on a samba share and tunnel the samba ports through ssh (using port forwarding on the samba ports 137-139 so you don't have these open to the public on your home machine).
Code:
ssh -l user -L 137:localhost:137 -L 138:localhost:138 -L 139:localhost:139 hostname
mount -t smbfs //localhost/share /mnt/samba

Not sure if this is the exact syntax but it will give you an idea.

Or you could use nfs if that is available on both machines, or use scp to copy the files you need via ssh.
_________________
My Gentoo Linux Stuff | Get FireFox
Back to top
View user's profile Send private message
fls
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2003
Posts: 111
Location: Germany

PostPosted: Wed Sep 22, 2004 11:23 am    Post subject: Reply with quote

This is exactly what you´re looking for :)
_________________
First they ignore you, then they laugh at you, then they fight you, then you win. Mahatma Ghandi
Back to top
View user's profile Send private message
Fillepe The Mexican
n00b
n00b


Joined: 12 Mar 2004
Posts: 71

PostPosted: Wed Sep 22, 2004 10:07 pm    Post subject: Reply with quote

Quote:

If your uni machines have samba installed you could setup your home data on a samba share and tunnel the samba ports through ssh (using port forwarding on the samba ports 137-139 so you don't have these open to the public on your home machine).
Code:

ssh -l user -L 137:localhost:137 -L 138:localhost:138 -L 139:localhost:139 hostname
mount -t smbfs //localhost/share /mnt/samba

Not sure if this is the exact syntax but it will give you an idea.


I think this'll work, I'll see how this works. Watch this space.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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