- #
- # mount NFS (NFSv4) dir through ssh channel
- #
- # 1. Forward port 2049 (nfsd) on NFS server 10.49.20.131 to local machine's TCP port 4049
- rmainz@DERFWNB4966:~$ ssh -L 4049:localhost:2049 -N root@10.49.20.131
- # 2. mount NFS dir using local TCP port 4049
- # (this assumes that /etc/exports on 10.49.20.131 exports this filesystem as "localhost:/export/home/rmainz"!)
- mkdir -p /mnt
- root@DERFWNB4966:~$ mount -vvv -t nfs -o port=4049,vers=4 localhost:/export/home/rmainz /mnt
mount NFS dir through ssh channel
Posted by Anonymous on Tue 7th Feb 2023 18:28
raw | new post
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.