Remote Data Access - theunissenlab/lab-documentation GitHub Wiki
To access our data remotely, you can do so by mounting our remote data drives (e.g. zdrive) so that you can access files on your laptop/home computer. So far this has been solved Mac by Logan, but similar procedures should be possible for Windows / Linux.
You can mount zdrive locally on OSX via any of the workstations if you can connect to the VPN or are on the local network. If you cannot connect to the VPN for whatever reason, you can mount via fet.neuro.berkeley.edu which is publicly accessible.
-
Make sure you have brew installed https://brew.sh/. This is not needed but brew is useful
-
Install osxfuse and sshfs from the Mac Fuse Web Site. Find the right version and follow the instructions. It might require a reboot.
-
If not using VPN, make sure you have ssh-key access to finch
-
Make a folder to mount:
mkdir zdrive(suggest to usemkdir /Volumes/auto/zdrive). The / directory is sometimes read only on MacOS. The /Volumes should be writeable to all and already exist. As sudo first make auto:cd /Volumes; mkdir auto. Second, make zdrive:cd auto; mkdir zdrive -
Run
sudo sshfs -o allow_other,defer_permissions,noapplexattr,noappledouble,IdentityFile=/Users/<USERNAME>/.ssh/id_rsa <USERNAME>@finch:/auto/zdrive zdrivewhere zdrive is the local folder you want the mount to be on. If you are not on our local network or VPN replace finch by fet.neuro.berkeley.edu. Also change/Users/<USERNAME/.ssh/id_rsato wherever your id_rsa is. (You cant use~because sudo has a different~than you do.)
This will mount it and allow you to get any files accessible to @finch user all files created locally then will get permissions as if @zebra created them. If you have your vpn set up you can obviously do this with any accessible server and drive (can replace finch above with your preferred host name, such as corvus).
To unmount use umount -f zdrive
Mounting remotely on ubuntu is similar to the intructions for OSX.
-
Install sshfs:
sudo apt install sshfs -
Make a local location to mount, e.g.:
mkdir /auto/zdrive -
While connected to the VPN,
sudo sshfs -o allow_other,IdentityFile=/home/kevin/.ssh/id_rsa <USERNAME>@<HOSTNAME>:/auto/zdrive/ /auto/zdrivewhere is your username on the lab network and is one of the lab workstations, e.g. aquila. If you do not have VPN access for some reason, you can use the public ip of zebra instead: 169.229.219.171.