Use if you want to tunnel your NFS share over SSH

Step-by-step guide

Add the steps involved:

  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

          

  

You may also want to use visual panels to communicate related information, tips or things users need to be aware of.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.