Gentoo Archives: gentoo-user

From: Patrick Marquetecken <patrick.marquetecken@×××××××.be>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Encrypted NFS via ssh tunelling
Date: Fri, 09 Sep 2005 07:33:40
Message-Id: 38847.212.190.229.68.1126250958.squirrel@rivendell.arda.org
1 Hi,
2
3 I can do a nfs mount, but for security i would like to do it over ssh.
4 I always get this error:
5 mount: localhost:/usr/portage failed, reason given by server: Permission
6 denied
7 without the ssh tunnel i have no problems.
8 There are no firewall between the two machines, ssh between both goes fine.
9 My setup:
10 Attach NFS port of Server (2049) to local port 2818
11 ssh -f -L 2818:10.32.3.172:2049 -l root 10.32.3.172 sleep 86400
12
13 Attach mountD port of Server (675) to local port 3818
14 ssh -f -L 3818:10.32.3.172:675 -l root 10.32.3.172 sleep 86400
15
16 Mount
17 mount -t nfs -o tcp,port=2818,mountport=3818 localhost:/usr/portage
18 /usr/portage
19
20 ps -ef
21 root 9165 1 0 10:22 ? 00:00:00 ssh -f -L
22 2818:10.32.3.172:2049 -l root 10.32.3.172
23 root 9173 1 0 10:23 ? 00:00:00 ssh -f -L
24 3818:10.32.3.172:675 -l root 10.32.3.172
25
26 whats wrong here ?
27
28 TIA
29 Patrick
30 --
31 This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Encrypted NFS via ssh tunelling Hans-Werner Hilse <hilse@×××.de>
Re: [gentoo-user] Encrypted NFS via ssh tunelling Bryan Whitehead <driver@×××××××××.net>