The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics 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 03:57 PM
ssh tunneling goran00 SUN Solaris 3 12-13-2005 08:23 AM
Tunneling ErNci UNIX for Advanced & Expert Users 2 10-07-2005 07:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-29-2008
ImpeccableCode ImpeccableCode is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
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
  #2 (permalink)  
Old 04-30-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
Here's a good article on how to do it in debian, the steps should differ, but the logic should be the same, HTH.
  #3 (permalink)  
Old 05-02-2008
ImpeccableCode ImpeccableCode is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
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
  #4 (permalink)  
Old 05-02-2008
ramen_noodle ramen_noodle is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 251
[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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0