View previous topic :: View next topic |
Author |
Message |
Fillepe The Mexican n00b
Joined: 12 Mar 2004 Posts: 71
|
Posted: Wed Sep 22, 2004 10:25 am Post subject: Mounting filesystems through ssh |
|
|
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 |
|
|
silentbob Apprentice
Joined: 09 Nov 2003 Posts: 159 Location: UK
|
Posted: Wed Sep 22, 2004 10:50 am Post subject: |
|
|
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 |
|
|
fls Tux's lil' helper
Joined: 18 Apr 2003 Posts: 111 Location: Germany
|
Posted: Wed Sep 22, 2004 11:23 am Post subject: |
|
|
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 |
|
|
Fillepe The Mexican n00b
Joined: 12 Mar 2004 Posts: 71
|
Posted: Wed Sep 22, 2004 10:07 pm Post subject: |
|
|
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 |
|
|
|