NFS mount through ssh tunnel

From: Simon.Haldemann@BIT.admin.ch
Date: Fri Feb 14 2003 - 10:16:35 EST


Hi TruGurus

I want to mount a nfs directory using a ssh tunnel.

In Linux it works like this:

1: on client:
   # rcpinfo -p nfsserver
   to get port of nfs and mount daemon

2: on client:
   # ssh -f -L 7777:nfs-server:2049 -l user nfs-server /sbin/sleep 86400

3: on client:
   # ssh -f -L 8888:nfs-server:2219 -l user nfs-server /sbin/sleep 86400

4: on client:
   # mount -t nfs -o tcp,port=7777, mountport=8888
localhost:/export-directory /mount-directory

I have no problems with steps 1 to 3 on tru64 (5.1A), but the tru64 mount
doesn't know the option mountport.
Does someone know how to mount with an unusual mountport; or any other
suggestions, how to nfs through ssh?

Thank you very much

Simon

   

simon.haldemann@bit.admin.ch
System Manager Tru64 UNIX (tru64unix@bit.admin.ch)
BZBX, Betriebszentrum Bereitstellung UNIX
Bundesamt für Informatik und Telekommunikation BIT
Monbijoustrasse 74, CH-3003 Bern
Telefon +41-31-325 11 16
Telefax +41-31-325 90 30
Added interaction www.bit.admin.ch



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:07 EDT