NFS mount through reversed SSH tunnel
Hi guys, I'm having problems mounting a folder via reversed SSH tunnel, the setup is as follows:
nfs server: rpcinfo -p Code:
program vers proto port exports: /nfs 127.0.0.1(ro,sync,no_subtree_check) showmount -e 127.0.0.1 Export list for 127.0.0.1: /nfs 127.0.0.1 nfs client: mount -v -t nfs -o tcp,port=5100,mountport=5200 127.0.0.1:/nfs /test Code:
mount.nfs: timeout set for Wed May 9 22:51:41 2012 no firewall on both client & server any ideas? Thanks in advance :) |
Hi,
I'm not sure this will work through a reversed SSH tunnel. Have you tried SSHFS? I think it's more adequate in this type of situation. Should be available in repositories for most distros (it is in Debian). Kind regards, Eric |
Is there a way to do a reversed mount with sshfs? problem is that server has dynamic ip, and I dont have access to it.
|
Hi,
Yes, that should be no problem. Set up the reversed SSH tunnel and then connect to the port you use on localhost. Code:
sshfs -p <port> user@127.0.0.1:/path /localpath Eric |
All times are GMT -5. The time now is 07:33 AM. |