kooseefoo
November 30th, 2007, 01:50 PM
Okay, I'm trying to tunnel an NFS share from a closed network through the internet to my laptop via SSH.
Here's what I'm doing:
user@local$ ssh -gCL localhost:2050:localhost:2049 remote_host
And in another terminal
user@local$ sudo mount -t nfs -o port=2050 localhost:/path/to/share /path/to/mount/point
My laptop returns this:
mount.nfs: mount to NFS server 'localhost' failed: RPC Error: Program not registered
I checked to see if the nfs server is running, and that is fine. Netstat on the server shows that it is listening on port 2049. Netstat on my laptop shows that it is listening on port 2050. The NFS mounts work perfectly fine through the local network, so it seems to be a tunnel problem. Tunnelling other ports (such as port 80) works totally fine.
Thanks,
Chris
Here's what I'm doing:
user@local$ ssh -gCL localhost:2050:localhost:2049 remote_host
And in another terminal
user@local$ sudo mount -t nfs -o port=2050 localhost:/path/to/share /path/to/mount/point
My laptop returns this:
mount.nfs: mount to NFS server 'localhost' failed: RPC Error: Program not registered
I checked to see if the nfs server is running, and that is fine. Netstat on the server shows that it is listening on port 2049. Netstat on my laptop shows that it is listening on port 2050. The NFS mounts work perfectly fine through the local network, so it seems to be a tunnel problem. Tunnelling other ports (such as port 80) works totally fine.
Thanks,
Chris