The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH Tunneling silvaman UNIX for Advanced & Expert Users 1 02-27-2007 11:57 AM
ssh tunneling goran00 SUN Solaris 3 12-13-2005 04:23 AM
Tunneling ErNci UNIX for Advanced & Expert Users 2 10-07-2005 03:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Tunneling NFS through SSH????

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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-30-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,079
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Here's a good article on how to do it in debian, the steps should differ, but the logic should be the same, HTH.
Reply With Quote
  #3 (permalink)  
Old 05-02-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Hi Man,

I got succeeded in achiving the NFS tunneling via SSH. Above mentioned steps are already fine from the execution point of view on NFS Server and on NFS CLient. Some Services pertaining to thr RPC on the NFS needs to be started to make a proper RPC Channelized Communication between NFS Server and NFS Cliemt. Will keep on posting with the list of Sevices and the related RPC stuff for the same.

Thanks
Sachin
Reply With Quote
  #4 (permalink)  
Old 05-02-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 211
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
[Debian-Sarge] Tunneling NFS over SSH | HowtoForge - Linux Howtos and Tutorials
6.*Security and NFS

Note that using ssh tunneling in this manner breaks NFS in many ways.
You may want to look at ipsec instead.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process find grep find mtime find null character in a unix file glance unix grep multiple lines grep or grep recursive gzip password hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 02:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101