Use if you want to tunnel your NFS share over SSH

Step-by-step guide

  1. On the NFS server, find the mountd port being used

    rpcinfo -p | grep mountd | grep tcp | grep " 1 " | awk '{print $4}'
  2. On the client, establish the tunnels.  Replace mountd_port with what was found in step 1.  Establish the mounts.

    ssh -fNv -L 6000:nfs_server:2049 -L 6001:nfs_server:mountd_port user@nfs_server
    mount -t nfs -o port=6000,mountport=6001,tcp localhost:/nfs_share mountpoint