Skip to content

Instantly share code, notes, and snippets.

@ovidner
Last active July 17, 2018 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ovidner/79dd684fef1081f0abace77fa6e97498 to your computer and use it in GitHub Desktop.
Save ovidner/79dd684fef1081f0abace77fa6e97498 to your computer and use it in GitHub Desktop.
Mount LiU home directory remotely on macOS
username="oller120"
mountpoint="/Users/olle/liuhome"
homeserver="filur02.it.liu.se"
sudo ssh -L 139:$homeserver:139 -L 445:$homeserver:445 -N -f $username@remote-und.ida.liu.se
mount -t smbfs "//ad.liu.se;$username@localhost/students/$username" "$mountpoint"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment