Client 에서
ssh tunnel 구성
# ssh -fNv -L RANDOM_PORT1:NFS_SERVER:2049 -L RANDOM_PORT2:NFS_SERVER:20048 USER@NFS_SERVER
예)
# ssh -fNv -L 5000:192.168.0.100:2049 -L 5001:192.168.0.100:20048 user@192.168.0.100
(* 20048 포트는 nfs v3에서 사용되는 mountd의 포트임)
NFS Share Mounting
# mount -t nfs -o port=RANDOM_PORT1,mountport=RANDOM_PORT2,tcp localhost:/NFS_SHARE MOUNTPOINT
예)
# mount -t nfs -o port=5000,mountport=5001,tcp localhost:/share-directory /mnt
SSH tunnel for mounting an NFS share