How to tunnel NFS over SSH?

Solution Verified - Updated -

Issue

  • 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

Environment

  • 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.