Hello Folks,
Im trying to pass the NFS Shared data through the SSH tunnel. Following are the Steps for my Executions:
A) Commands Executed on Server (NFS Server + SSHD Server running)
i) share -F nfs -o rw=<NFS Server IP> /home
ii) Start the NFS Server Services and SSHD Services.
B)Commands Executed on NFS Client (For mounting the NFS Server Share)
-- Creation of SSH Tunnel first:
i) ssh -fNg -L "5555:<NFS Server IP>:2049" <NFS Server IP> -l <UserName>
Port No . 2049 got from"rpcinfo -p <NFS Server IP>" -- nfs
ii)ssh -fNg -L "6666:<NFS Server IP>:30458" <NFS Server IP> -l <UserName>
Port No . 30458 got from"rpcinfo -p <NFS Server IP>" -- mountd
iii) mount -F nfs -o port=5555 <NFS Client IP or Localhost>:/home /mnt/nfs/
ERROR: nfs mount: localhost:/home: Permission denied
iV) mount -F nfs -o port=6666 <NFS Client IP or Localhost>:/home /mnt/nfs/
ERROR: nfs mount: localhost:/home: Permission denied
Folks, how can i resolve the error occuring at above two steps iii) and iv)...
Any Suggestions in this regard...especially any pointers to proceed on the topic of " Tunneling NFS through/via SSH" on Soalris 10
will be highly appreciated.
--Sachin Jambhulkar