Mounting Fabian storage on your computer using rclone
- Windows
- Mac or Linux
Before you begin ensure you can ssh to Fabian using ssh fab. For help with that follow the guide Logging in via SSH and transferring data via SCP/SFTP/rsync
Before you begin ensure you can ssh to Fabian using ssh fab. For help with that follow the guide Logging in via SSH and transferring data via SCP/SFTP/rsync
Install rclone
Download and unzip rclone from https://rclone.org/downloads/.
rclone/rclone.exe can be run from any location,though placing it somewhere in your PATH is convenient.
Configure rclone
- Windows
- Mac or Linux
Locate rclone's config file with the command .\rclone config file
You'll see something like
Configuration file is stored at:
C:\Users\U.Username\AppData\Roaming\rclone\rclone.conf
Locate rclone's config file with the command rclone config file
You'll see something like
Configuration file is stored at:
~/.config/rclone/rclone.conf
Open rclone.conf in a text editor and add a section for fab.
Replace your LSE username here with your LSE username, that is the one you see when you login to fabian and NOT your local username or email address.
Ensure the file is named exactly rclone.conf (not .txt).
- Windows
- Mac or Linux
[fab]
type = sftp
host = jump.fab.lse.ac.uk
user = your LSE username here
port = 22619
shell_type = unix
key_file = C:\Users\U.Username\.ssh\id_ed25519
[fab]
type = sftp
host = jump.fab.lse.ac.uk
user = your LSE username here
port = 22619
shell_type = unix
key_file = /Users/U.Username/.ssh/id_ed25519
If you have used a passphrase to protect you private key please see below for details on setting up ssh-agent
Test the connection rclone lsd fab:
If successful, you’ll see directories from your Fabian home.
Mounting storage
- Windows
- Mac or Linux
Install the winfsp program from https://github.com/winfsp/winfsp/releases
As this requires administrator rights on your device users with LSE owned devices will need to wait for this to be available from the App Store, it has been requested.
You can mount your storage with the command rclone mount fab: \\fab\home you should now see a network drive in your windows file explorer
If you want to mount the storage from another part of Fabian, say a project you are a member of then add that path
rclone mount fab:/projects/my_department/projectname \\fab\projectname
Make a empty directory to mount the storage at e.g. mkdir ~/fab
Then mount your storage with the command rclone mount fab: ~/fab you should now see you fabian files in ~/fab
If you want to mount the storage from another part of Fabian, say a project you are a member of then add that path
mkdir ~/project-name
rclone mount fab:/projects/my_department/projectname ~/project-name
Keeping your ssh key protected by a passphrase
If you wish to keep your ssh key protected with a passphrase you will have to use ssh-agent to hold the decrypted key so that rclone can use it.
As an administrator on your windows device set the ssh-agent service to start automatically and start the ssh-agent service with the following commands in a powershell console
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
Then add your ssh key ssh-add .ssh\id_ed25519
Additional Documentation
For more details and options please refer to rclone.org/commands/rclone_mount/