How to tunnel NFS over SSH?

Solution Verified - Updated -


  • How to tunnel NFS over SSH?
  • We are trying to mount some directory on the server over SSH tunneling on the client. Got error message mount.nfs: mount(2): Permission denied
  • I am trying to use SSH port mapping to supply a service which uses dynamic changing port numbers


  • Red Hat Enterprise Linux 6
  • NFS v3 or NFS v4
  • SSH tunnel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content