Instantly share code, notes, and snippets.

@thenoviceoof thenoviceoof/mount.sh Secret
Created Jul 1, 2017

Embed
What would you like to do?
NFS/ssh Mount commands
# Forward port for nfsd.
autossh -M 0 -f -T -N -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" kalnas -L 3048:localhost:2049
# Forward port for mountd.
autossh -M 0 -f -T -N -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" kalnas -L 3049:localhost:32222
# By default, uses 3 requests.
# Timeout increases 5, 10, 15 (uses deci-seconds as units).
mount -t nfs -o soft,timeo=50,port=3048,mountport=3049,tcp localhost:NAS_PATH MOUNT_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment