Tunneling NFS through SSH????


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Tunneling NFS through SSH????
# 1  
Old 04-29-2008
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  
Old 04-30-2008
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  
Old 05-02-2008
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  
Old 05-02-2008
[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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Query regarding PuTTY SSH Tunneling

I have a process running on my local server. http://dev.techx.com:6060/proct I wish to block port 6060 and expose port 7777 to the outside world. I block port 6060 and open port 7777 on the firewall. What should be the PuTTY Settings -> Connection -> SSH -> Tunnels 1. Destination ... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. UNIX for Dummies Questions & Answers

Ssh tunneling

I want to perform ssh tunnelling for which I have been using PuTTy. Config is as follows: Host IP: 172.XX.XX.111Port: 22Tunnel setting source port: 19005Destination: 172.XX.XX.40:1521After entering my user ID and password, I am able to see in my command prompt that 127.0.0.1:19005 is listening.... (1 Reply)
Discussion started by: aakashsoor
1 Replies

3. UNIX for Advanced & Expert Users

Server access for SSH Tunneling!

Hi! I came to know about SSH Tunneling to bypass the Firewall. I will have to setup a free access SSH server to tunnel data access through PUTTY or OpenSSH. The problem is that I don't know about any free access servers. So, can anyone of you guide me for that, for any type of help? (1 Reply)
Discussion started by: nixhead
1 Replies

4. Shell Programming and Scripting

Are free public shells for ssh tunneling safe?

Is it secure to use free shells for ssh tunneling? Can the shell provider see and log the sites I visit and passwords I enter? I'm new to this thing and couldn't find info on google :o (5 Replies)
Discussion started by: rafunk
5 Replies

5. UNIX for Dummies Questions & Answers

SSH port forwarding/tunneling

So this seems like something that should be simple...but I can't quite seem to get it up and running. I have a machine, .107 with a GUI on port 8443. The problem is that I can't connect directly to .107 from my laptop. Now I have another machine, .69 that can connect to .107. So shouldn't I be able... (4 Replies)
Discussion started by: DeCoTwc
4 Replies

6. Infrastructure Monitoring

Tunneling UDP via SSH

Performing UDP tunneling through an SSH connection Found this while looking for a way to temporarily forward SNMP requests across otherwise disconnected networks. Might be useful for someone else, too. (1 Reply)
Discussion started by: pludi
1 Replies

7. Ubuntu

ssh authoized keys nfs

Hi all I would like to do ssh from machine "ub0" to another machine "ub1" without using passwords. I setup using nfs on "ub0" but still I am asked to insert a password. Here is my scenario: * machine ub0 and ub1 have the same user "mpiu", with same pwd, same userid, and same group id * the... (0 Replies)
Discussion started by: manustone
0 Replies

8. UNIX for Advanced & Expert Users

tunneling commands and file transfers through established ssh connection

Hi - I frequently run commands, and transfer files to/from a host that uses SecurID ssh authentication. It is a real pain to have to enter the authentication information every time I want to interact with this host. I am wondering if there is a way to establish a one-time ssh connection to this... (2 Replies)
Discussion started by: cpp6f
2 Replies

9. UNIX for Advanced & Expert Users

SSH Tunneling

Hi all question - there are 2 servers A + B. server A is connected to the internet and running a squid proxy server - server B is behind a firewall. I can ssh from A to B but not from B to A. I need internet access on B to update some files. I thought I could use some sort of ssh tunnel to... (1 Reply)
Discussion started by: silvaman
1 Replies

10. Solaris

ssh tunneling

Hi, I have tried the following: on PC1 (win xp) I have created ssh connection with port forwarding (local 8888 to remote 8888) to server1. >From server1 I have created another ssh connection with port forwarding to server2(local 8888 to remote 1521). When I try to connect to oracle... (3 Replies)
Discussion started by: goran00
3 Replies
Login or Register to Ask a Question