LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-22-2010, 07:23 AM   #1
Mr Pink
LQ Newbie
 
Registered: Dec 2008
Posts: 23

Rep: Reputation: 0
NFS over SSH


Hi,

I am not sure what I am doing but I followed this http://www.howtoforge.com/nfs_ssh_tunneling

and when I try and mount it manually I get

root@client:~# mount localhost:/test /home/www-data/test/ -o rw,tcp,port=62000,mountport=62001
mount.nfs: internal error

The server

root@gp-wpbalance:/test# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32947 status
100024 1 tcp 32798 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 2232 nlockmgr
100021 3 udp 2232 nlockmgr
100021 4 udp 2232 nlockmgr
100021 1 tcp 2232 nlockmgr
100021 3 tcp 2232 nlockmgr
100021 4 tcp 2232 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 2233 mountd
100005 1 tcp 2233 mountd
100005 2 udp 2233 mountd
100005 2 tcp 2233 mountd
100005 3 udp 2233 mountd
100005 3 tcp 2233 mountd

My tunnels on the client

www-data 23303 1 0 12:30 ? 00:00:00 /usr/lib/autossh/autossh -M 5001 sleeper@gp-wpbalance -NL 62000:server:2049
www-data 23308 1 0 12:30 ? 00:00:00 /usr/lib/autossh/autossh -M 5002 sleeper@gp-wpbalance -NL 62001:server:2233

I can telnet to both the listening ports and I can also mount NFS normally from the other server.

In my Syslog on the client I see this

Feb 22 13:19:52 client kernel: [935640.770093] mount: server localhost not responding, timed out


I think its not using the correct ports on the client side but I am not sure? Does anyone have any suggestions?

Thanks,
Will
 
Old 02-22-2010, 10:37 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,009
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
This talks about /etc/default/nfs-common which is what sets the ports for Debian. It also talks about firewall settings to insure the ports are opened.

http://wiki.debian.org/SecuringNFS
 
  


Reply

Tags
nfs, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using same NFS and SSH permission mr_aliagha Linux - General 6 12-08-2009 10:31 AM
NFS over SSH hangup zerg4141 Linux - Server 1 09-15-2008 01:20 AM
nfs-mounting via ssh. Possible ? Xeratul Linux - General 2 05-24-2007 06:02 PM
LXer: Securing NFS - Tunneling NFS over SSH LXer Syndicated Linux News 0 09-27-2006 02:03 PM
NIS+NFS or SSH+NFS threelions66 Linux - Networking 1 09-07-2006 01:44 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration