Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmapOpen the exports file:
vim /etc/exportsAdd the following line:
/home/proudlygeek localhost(insecure,rw,sync,no_subtree_check)Restart NFS Service:
service nfs-kernel-server restartor just export the FS:
exportfs -aInstall the client:
apt-get install nfs-common portmapMake a mount folder:
mkdir /mnt/nfs-shareSetup an SSH tunnel (local-to-remote port):
ssh -fNv -L 3049:localhost:2049 user@hostnameMount the folder:
mount -t nfs -o port=3049 localhost:/home/proudlygeek /mnt/nfs-share
One thing I am curious about is does the remote port has a specific meaning? is it a ssh port or is it just a random port ?