Remote File System
A remote file system via SSHFS establishes a connection between a drive on your local machine and your virtual machine.
Once connected, any data written to the virtual drive is mirrored on the local machine, and vice versa.
This provides an efficient way to transfer data from your local machine and integrates seamlessly with tools like external SFTP.
Mount Remote File System via SSHFS in MAC OS
- Ensure your MAC OS is updated to the latest version before starting.
- Install both MacFuse and SSHFS to your local machine.
- A separate license may be required for non-personal or commercial use for "MacFuse" and "SSHFS".
- Your Linux VM must be properly configured for SFTP to work.
Download macFUSE
- Open the MacFUSE Stable Release download link in your browser.
- In the pop-up, click Save to download the macFuse.dmg installer locally.
- In your downloads directory, click to open the macFUSE installer.
Install macFUSE
- Double-click the icon Install macFUSE.
- In the prompt, click Allow.
- Click Continue to proceed.
- View the licence agreement, then click Continue.
- In the pop-up, click Agree.
- Click Install.
- In the pop-up, enter your Mac password.
- Click Install Software.
Enable System Extension in Mac
- In the new pop-up, click Open System Settings.
- Once in settings, navigate to Privacy & Security section.
- Under the Security subsection, click Enable System Extensions....
- Enter your password to confirm.
- In the new pop-up, click Shut Down.
Set Security Utility at Startup
- Once your Mac is shut down, hold the Start button until you see "Additional Startup Options" on the screen.
- Click the icon Options from the boot list.
- Select your user account in Mac.
- Click Next.
- In the prompt, enter your Mac password.
- Click Continue.
- In the new window, navigate to Utilities in the top taskbar.
- Select Startup Security Utility.
Set Security Policy for kernel
Extensions
- Next, select your Macintosh HD where your macOS is located.
- Click the Security Policy button in the bottom right.
- In the prompt, tick the Reduced Security option.
- Tick the box to Allow user management of kernel extensions from identified developers.
- Click OK to restart your Mac.
As long as you set up the security policy, you can also manually restart your Mac afterwards.
Download SSHFS
- Once restarted, open the SSHFS Stable Release download link in your browser.
- In your downloads directory, click to open the SSHFS installer.
Install SSHFS
- In the installer prompt, click Continue.
- View the licence agreement, then click Continue.
- In the pop-up, click Agree.
- Click Install.
- In the pop-up, enter your Mac password.
- Click Install Software.
- Once installed, click Close.
- In the pop-up, click Move to bin to delete the installer locally.
- Go to Apps and open Terminal.
Copy-paste SFTP Command from your Virtual Machine
- Navigate to Apps and open the Connect Application.
- Log into your institution's secure enclave.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the Virtual Machines Table Overview section in the top left panel.
- In the left panel, select the virtual machine you want to mirror files to.
- Next, click the SFTP to VM card.
- In the pop-up, click the Copy button next to Mac/Linux SSHFS field.
Do not close the Connect Application pop-up.
- Paste the SSHFS command into your local machine's terminal.
- Press Enter.
- A message of authenticity will be displayed following an SHA256 key fingerprint.
- Type yes and press Enter to proceed.
- Go to the Connect Application pop-up.
- Click the Copy button next to the Password field.
- Paste the password into the local machine's terminal and press Enter.
- A system extension block pop-up may be displayed.
- Click Allow.
- Restart your local machine if asked.
If the terminal fails to connect your local drive to your VM drive after pasting the password, close the connection pop-up in the secure enclave interface, reopen it by clicking SFTP to VM, and enter the newly generated password into the terminal.
- Go to Finder.
- Locate the virtual drive in your drives directory.
- Double-click the virtual drive to open it.
- Drag-and-drop files from your local machine to the virtual drive.
If you do not find the virtual drive in your Mac:
- Open Finder from your dock (the smiley face icon).
- Click Finder in the top-left corner of your screen in the menu bar (this only appears when Finder is active).
- Select Settings... (older Mac OS versions say Preferences...).
- In the settings prompt, under Locations check YOUR NAME's Mac Book. (eg: John's Mac Book Air)
- Navigate to YOUR NAME's Mac Book location in Finder in the left panel.
- Locate your mirrored virtual drive.
If you see the pop-up warning Not enough disk space to copy "Your-File-Name.xyz" when performing the transfer from your Mac to your VM:
- Navigate to Start menu.
- Search and open the Connect Application.
- Log into your institution's secure enclave.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the Virtual Machines Table Overview section on the top left panel.
- In the left panel, select the virtual machine you are using for the transfer.
- Ensure you are connected via SFTP to VM transfer locally.
- Next, click the Open Terminal card.
- In the VM terminal, run
dp -h
to view the avialable space in the VM. - Click Exit in the top left corner.
- Contact your administrator to allow you more space for your files in your transfering VM.
If you see the pop-up warning Not enough disk space to copy "Your-File-Name.xyz" when performing the transfer from your Mac to your VM:
- Navigate to Start menu.
- Search and open the Connect Application.
- Log into your institution's secure enclave.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the Virtual Machines Table Overview section on the top left panel.
- In the left panel, select the virtual machine you are using for the transfer.
- Ensure you are connected via SFTP to VM transfer locally.
- Next, click the Open Terminal card.
- In the VM terminal, run
dp -h
to view the avialable space in the VM. - Click Exit in the top left corner.
- Contact your administrator to allow you more space for your files in your transfering VM. :::
You may have to approve macFUSE in System Preferences > Security & Privacy after installation — Mac might block it until you allow it.
To save data in other parts of your directory tree, use symlinks.
The Mac/Linux SSHFS Command Mechanism Explained
The Mac/Linux SSHFS command creates a virtual drive but does not run it for security reasons.
Syntax:
mkdir -p ~/ _ticrypt_vm_drive; unmount ~/_tiCrypt_vm_drive; sshfa -o volname="YOUR VM NAME" -o follow_symlinks -p YOUR_PORT USER@localhost: /DRIVE_PATH
~/_ticrypt_vm_drive
Parameter | Description |
---|---|
mkdir | Makes a local directory where you will save your research data in your local machine. |
unmount ~/_tiCrypt_vm_drive | Unmounts the previous virtual drives mounted in your local machine to allow a new virtual drive mount. |
sshfa -ovolname="EL" | Accessing your VM named "EL" in this example. |
-o follow_symlinks | This is for file management, it allows the use of symlinks to move data into specific access directories of the VM besides the home directory. |
-p 12345 john@localhost: /User/John/Drives | Accessing your VM port, username from your local machine using the correct drive path. |
~/_ticrypt_vm_drive | Names the drive a standard name for improved user experience purposes. |
The remote system file only allows you to write files; it does not allow viewing or reading them.
This feature is designed to allow you to only transfer files into your VM from your local machine.
It is not a bug but a feature to prevent data exfiltration.
Debug
Error "zsh:command not found: sshfs" or "sshfs:Unsatisfied requirements failed to build."
If zsh:command not found: sshfs
you must install brew
and sshfs
on your local machine;
- Run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
. - Enter your password in terminal if requested to check for 'sudo' access.
- Hit Enter.
- Wait for
homebrew
to install. - Next run
brew install sshfs
.
Error "brew:not found" or "macfuse:not found"
If brew:not found
you must install it.
- Run
eval "$(/opt/homebrew/bin/brew shellenv)"
. - Then run
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
to set the installation paths correctly. - Verify the paths by running
brew --version
. - You should see your installed brew version below.
- Once done, run
brew install macfuse
.
If brew install macfuse
fails, go to System Settings > Privacy & Security and select Allow to load macFUSE.
You may be asked to enter your password in terminal upon installation.
SFTP is configured by default to follow symlinks, which are pointers linking one part of the system to another. The system defaults to your home directory, but if you prefer to store data elsewhere, create a symlink to point to the desired location.
Unmount local drive from Remote File System in Mac OS
Previously mounted local drives are automatically unmounted by tiCrypt when the Linux/Mac SSHFS command is executed in the terminal.
Method One
- Go to Finder.
- Locate the virtual drive in your User directory.
- Right-click the virtual drive.
- From the options, select Eject.
For best practice, you should eject your virtual drive from the remote file system after each session.
Method Two
- Go to Apps in Mac.
- Open a local terminal.
- In the terminal, run
diskutil umount force NAME_OF_VIRTUAL_DRIVE
. (eg:diskutil unmount force my-virtual-drive-name
) - Check for the terminal message
unmount successful for my-virtual-drive-name
.
If you cannot unmount your local drive, verify the directory path provided in the terminal and retry using a path variation such as diskutil umount force Users/John/my-virtual-drive
.
Mount Remote File System via SSHFS in Windows
- Ensure your Windows is updated before starting.
- Install either WinSFTP and SSHFS or SFTP Drive and SSFHS to your local machine.
- A separate license may be required for non-personal or commercial use for "WinSFTP", "SFTP Drive 2024" and "SSHFS".
- Your Windows VM must be properly configured for SFTP to work.
Method One
Download WINFSP
- Open the WINFSP download link in your browser.
- Navigate to Downloads in your browser, and click to open the WINSFSP.exe installer.
Install WINFSP
- In the new prompt, click Next.
- View the installation path and click Next.
- Click Install.
- In the pop-up, click Yes to allow WINFSP to make changes to your device.
- Once installed, click Finish.
Download SSHFS
- Open the SSHFS download link in your browser.
- Navigate to Downloads in your browser, and click to open the SSHFS.exe installer.
Install SSHFS
- In the new prompt, click Next.
- View the installation path and click Next.
- Click Install.
- In the pop-up, click Yes to allow SSHFS to make changes to your device.
- Once installed, click Finish.
Map Network Drive
- Go to file explorer in This-PC.
- Right-click on This-PC icon in the left panel.
- From the options, select Map network drive....
- A prompt will show up.
Copy-paste SFTP Command from your Virtual Machine
- Navigate to Start menu.
- Search and open the Connect Application.
- Log into your institution's secure enclave.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the Virtual Machines Table Overview section on the top left panel.
- In the left panel, select the virtual machine you want to mirror files to.
- Next, click the SFTP to VM card.
- In the pop-up, click the Copy button next to Windows SSHFS field.
Do not close the Connect Application pop-up.
- Paste the SSHFS command into your local Map network drive prompt, in the Folder field.
- Click Finish.
- A new prompt will require your local host password.
Login to your Local Host
- Go to the Connect Application pop-up.
- Click the copy button next to Password field.
- Paste the password into the local host prompt.
- Click OK.
- Your secure VM directory will open in File Explorer, and any changes made there will be mirrored in your secure enclave VM.
Method Two
Download SFTP Drive
- Open the SFTP Drive download link in your browser.
- Navigate to Downloads in your browser, and click to open the SFTPDrive2024.exe installer.
Install SFTP Drive
- In the new prompt, click Yes to allow the app to make changes to your device.
- Then, click Next.
- View the license agreement and click I Agree.
- View the installation path and click Next.
- Click Next.
- Click Install.
- Once installed, click Finish to run the SFTP Drive.
Open New Connection
- In the new prompt, click New in the top right.
- In the pop-up, under Drive, in the Drive Name field, enter your secure enclave's name. (no caps)
- Next, type localhost in the Remote Host field.
Copy-paste SFTP Commands from your Virtual Machine
- Navigate to Start menu.
- Search and open the Connect Application.
- Log into your institution's secure enclave.
- Go to the Virtual Machines icon in the top left taskbar.
- Click the Virtual Machines Table Overview section on the top left panel.
- In the left panel, select the virtual machine you want to mirror files to.
- Next, click the SFTP to VM card.
- In the pop-up, click the Copy button next to remote port, username and password.
- Then paste your remote port, username and password into the corresponding fields.
Do not close the Connect Application pop-up.
Test SSH Connection
- Click Test SSH Connection button in the bottom left corner.
- In the pop-up click Yes to confirm connection.
- In the new pop-up, click OK.
Connect via SSH
- In the SFTP Drive prompt, click OK to connect.
- In the pop-up, click Yes to connect the drive now.
- Your secure VM directory will open in File Explorer in This-PC directory, and any changes made there will be mirrored in your secure enclave VM.
Unmount local drive from Remote File System in Windows
Method One
Previously mounted local drives are automatically disconnected by tiCrypt when the Windows SSHFS command is executed in the terminal.
- Go to File Explorer in This-PC.
- Right-click the secure VM directory.
- From the options, select Disconnect.
For best practice, always disconnect your local drive from the remote file system after each session.
Method Two
- Go to SFTP Drive prompt.
- Select the running connected drive from the list.
- Click Disconnect in the right panel.
To reconnect back the drive, open the Connect Application and copy-paste the new port and password in the SFTP Drive prompt, select the drive and click Connect in the right panel.