Originally posted by: SystemAdmin
i want 4hrs of my life back.
Solution:
Since the ssh tunnel initiates the connection between nfsclient and nfsserver first, the mount is being presented to the localhost of the server and not any connecting clients. My access rules were limited to the clients, when it should have only been allowing connections from the server itself.
SERVER:/etc/exports
incorrect
/home/me/sp -rw,access=nfsclient1,vers=4
correct
/home/me/sp -rw,access=$HOSTNAME_OF_SERVER,vers=4
I tried using localhost in place of $HOSTNAME_OF_SERVER, but it only worked with the actual hostname of the server.
My steps.
SERVER:/etc/exports
/home/me/sp -rw,access=$HOSTNAME_OF_SERVER,vers=4
CLIENT
$ ssh -i /home/me/.ssh/nfs_ssh $HOSTNAME_OF_SERVER -L 49555:$HOSTNAME_OF_SERVER:2049 -f -C -N
$ sudo mount -o rw,vers=4,port=49555 localhost:/home/me/sp /mnt/a
The compression used in this SSH command has doubled the speeds of my NFS transfers. who-raw.
Feel free to get a hold of me via this thread if you need help.
#AIX-Forum