3 ms·
Oh wow, inspired by the stunnel above I just successfully used $ ssh -Nf -L2049:my-nas:2049 my-gw $ sudo mount -t nfs -o vers=4 localhost:/mnt/somewher
by FullyFunctional 4y ago
Oh wow, inspired by the stunnel above I just successfully used
$ ssh -Nf -L2049:my-nas:2049 my-gw
$ sudo mount -t nfs -o vers=4 localhost:/mnt/somewhere/username /home
to mount my home (5,000 miles from where I currently sit) over ssh (over zerotier) without needing SSHFS. I'm going to use this going forward.
- maccam94 4y agoBeware, you may need to do a significant amount of sysctl tuning/mount option tweaking to get fast NFS performance over high latency networks.
- FullyFunctional 4y agoThanks, got pointers? It already works very well (seat-of-the-pants feels comparable to or better than my sshfs recollection); I managed to build Rust projects over it (with target on local FS). Googling around suggest bumping the TCP transfer window but I don't see that as option in macOS's man mount_nfs, or any other useful option for that matter.