pastebin - collaborative debugging tool
rovema.kpaste.net RSS


mount NFS dir through ssh channel
Posted by Anonymous on Tue 7th Feb 2023 18:28
raw | new post

  1. #
  2. # mount NFS (NFSv4) dir through ssh channel
  3. #
  4.  
  5. # 1. Forward port 2049 (nfsd) on NFS server 10.49.20.131 to local machine's TCP port 4049
  6. rmainz@DERFWNB4966:~$ ssh -L 4049:localhost:2049 -N root@10.49.20.131
  7.  
  8. # 2. mount NFS dir using local TCP port 4049
  9. # (this assumes that /etc/exports on 10.49.20.131 exports this filesystem as "localhost:/export/home/rmainz"!)
  10. mkdir -p /mnt
  11. root@DERFWNB4966:~$ mount -vvv -t nfs -o port=4049,vers=4 localhost:/export/home/rmainz /mnt

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at