Skip to content
Snippets Groups Projects
Commit 64aea155 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'LFT_mp' into 'develop'

Add new how-to card "LFT"

See merge request R3/howto-cards!417
parents b3fa436a 3e77def9
No related branches found
No related tags found
No related merge requests found
Showing
with 169 additions and 0 deletions
external/exchange-channels/lft/img/lft_AsperaConnect.png

130 B

external/exchange-channels/lft/img/lft_AsperaConnectInstalled.png

129 B

external/exchange-channels/lft/img/lft_AsperaCrypt.png

130 B

external/exchange-channels/lft/img/lft_FirefoxAddOn.jpg

130 B

external/exchange-channels/lft/img/lft_asperaExtension.jpg

130 B

external/exchange-channels/lft/img/lft_command.png

131 B

external/exchange-channels/lft/img/lft_encryptionPassword.png

130 B

external/exchange-channels/lft/img/lft_fileBrowser.png

130 B

external/exchange-channels/lft/img/lft_help.png

130 B

external/exchange-channels/lft/img/lft_helpCommandLine.png

130 B

external/exchange-channels/lft/img/lft_install.png

130 B

external/exchange-channels/lft/img/lft_installAsperaConnect.png

130 B

external/exchange-channels/lft/img/lft_password.png

130 B

external/exchange-channels/lft/img/lft_runInstallation.png

130 B

external/exchange-channels/lft/img/lft_status.png

130 B

---
card_order: 100
layout: page
permalink: /external/exchange-channels/lft/
shortcut: exchange-channels:lft
redirect_from:
- /cards/exchange-channels:lft
- /external/cards/exchange-channels:lft
---
# LCSB file transfer (LFT) Quick Guide
{:toc}
## Overview
LCSB File Transfer (LFT) is a tool based on IBM Aspera software that supports end-to-end encrypted data transfer and can handle high data volumes e.g. several tera bytes.
## Obtaining a LFT access link
You need an **access link** to use LFT. An access link is a temporary, password-protected space, much like a drop box, on LCSB file transfer server. In order to obtain an access link, you should contact your research collaborator at the LCSB-University of Luxembourg. Once created, you will receive your **access link** and associated **password** by e-mail.
> **IMPORTANT NOTE: Whenever the LCSB shares a password for an LFT endpoint (collaborator), the password is transmitted via a link which will expire in one week. Therefore you should make a record of your password once you view it.**
An access link can be reached via standard web browsers. Data can be transferred to/from an access link in two ways:
* Through the web browser by visiting the link, which is our recommended way of data transfer, described in this [section of the guide](#LFT_WEB).
* Through the use of a command line tool. If your data sits in an environment, where you can not launch a web browser, then you may use a command line client tool to reach an access link. This process is described in this [section of this guide](#LFT_CLI).
The use of LFT is mediated by LCSB's data stewards. If you require assistance in using LFT, you should send an email to the [LCSB datastewards](mailto:lcsb-datastewards@uni.lu) or refer to the [Troubleshooting](#LFT_TROUBLESHOOTING) section of this guide.
<a name="LFT_WEB"></a>
## Accessing LFT via Web Interface
In the following steps we provide instructions on how to use LFT web interface.
1. Once you receive your **access link** and **password** from the LCSB, visit the link using a standard web browser. Firefox 66.x (or higher) is recommended, but others should also work. You will be prompted for your password (see below).<br/><br>
![Alt](img/lft_password.png "Password request")
2. When you visit an LFT access link for the very first time, you will be prompted to install or update **IBM Aspera Connect** client.
* click **Install Connect** button (see below). <br/>![Alt](img/lft_install.png "Install Aspera Connect")
* open the installer just downloaded and start the installer. <br/>![Alt](img/lft_installAsperaConnect.png "Run installation of Aspera Connect")
* close the installer - *depending on your Operating System the Aspera Connect can try to open and you may be asked if you are sure to open it* -
* the prompt should disappear and you should see the following message <br/>![Alt](img/lft_AsperaConnectInstalled.png "Aspera Connect is installed")
3. The **access link** page will display a **File Browser** section. Depending on the settings per access link, users can create or delete folders in the File Browser and upload and/or download data.
![Alt](img/lft_fileBrowser.png "File Browser")
4. Clicking **Upload** or **Download** icons will launch the **IBM Aspera Connect** client on your computer. You first will be asked whether you allow the client to connect to the server. Choose **Allow**.
> Note: to download file/folder you need to select it first.
5. At any time you can launch **IBM Aspera Connect** to display the status of uploads to or downloads from your computer. <br/>
![Alt](img/lft_status.png "Aspera Connect status")
6. All data are encrypted on server side and they stay encrypted also upon download. For decryption, you have to navigate into your **IBM Aspera Connect** window and click "**Unlock encrypted files**". <br/>
![Alt](img/lft_AsperaConnect.png "IBM Aspera Connect") <br/>
You will be prompted for encryption passphrase which is present on the file browser (click on the copy icon to copy into clipboard).
![Alt](img/lft_encryptionPassword.png "Encryption password") <br/>
![Alt](img/lft_AsperaCrypt.png "File decryption") <br/>
Encrypted files are by default kept on your disc after decryption. If you want to change this behaviour, navigate to Options->Settings and check "Delete encrypted files when finished" box.
7. You can also navigate to the help section on the top of the browser. It contains information and links to get support.
<a name="LFT_CLI"></a>
## Accessing LFT via Command-Line Tool
In the following steps we provide instructions on how to use LFT command line.
1. To access LFT via command line you need to have Aspera Connect be installed (see step 2 above).
2. To transfer data you need to authenticate your connection. Authentication is done via SSH for which you need **SSH private key**. That key comes with the Aspera Connect installation and is named `aspera_tokenauth_id_rsa`. You need to know the location of SSH private key. Please see the table below for the list of locations depanding on your operational system:
| Environment | Location | Alternate location |
|-|-|-|
| MacOS | `$HOME/Applications/Aspera\ Connect.app/Contents/Resources/aspera_tokenauth_id_rsa` | `/Applications/Aspera\ Connect.app/Contents/Resources/aspera_tokenauth_id_rsa` |
| Windows | `C:\\Program Files (x86)\Aspera\Aspera Connect\etc\aspera_tokenauth_id_rsa` |`C:\\Users\username\AppData\Local\Programs\Aspera\Aspera Connect\etc\aspera_tokenauth_id_rsa` |
| Linux | `$HOME/.aspera/connect/etc/aspera_tokenauth_id_rsa` | `/opt/aspera/etc/aspera_tokenauth_id_rsa` |
| Iris | `/opt/apps/resif/data/production/$PROD_VERSION/default/software/tools/Aspera-CLI/$CLI_VERSION/etc/aspera_tokenauth_id_rsa` | |
3. Go to the help section of your access link.
![Alt](img/lft_help.png "Help section") <br/>
And follow instructions there. Export variables and execute the command to download/upload data.
![Alt](img/lft_command.png "Help command line") <br/><br/>
<a name="LFT_TROUBLESHOOTING"></a>
## Troubleshooting
You can use the official [IBM Aspera Diagnostic Tool](https://test-connect.asperasoft.com/) to troubleshoot your connectivity issues.
### **Using Microsoft Edge browser**
Microsoft Edge browser requires to download and install [IBM Aspera Connect for Edge](https://microsoftedge.microsoft.com/addons/detail/ibm-aspera-connect/kbffkbiljjejklcpnfmoiaehplhcifki).
### **UDP/TCP port and firewall**
> **IMPORTANT NOTE:** Aspera requires UDP ports to be enabled on firewalls.
Specifically your firewall should:
* Allow outbound connections from the Aspera client on the TCP port (TCP/33001, by default, when connecting to a Windows server, or on another non-default port for other server operating systems).
* Allow outbound connections from the Aspera client on the fasp UDP port (33001, by default).
* If you have a local firewall on your server (like Windows Firewall), verify that it is not blocking your SSH and fasp transfer ports (e.g. TCP/UDP 33001).
Detailed information on how to configure firewalls when working with Aspera is given [here](https://download.asperasoft.com/download/docs/p2p/3.5.1/p2p_admin_win/webhelp/dita/configuring_the_firewall.html).
### Command-Line error "command not found: ascp" ###
Run `ascli config ascp show` to show path of `ascp`.
Modify command with the path instead of `ascp`.
Here is an example of download command
`<path-to-ascp-executable> -d -i $SSHKEY -P 33001 --file-crypt decrypt -W $TOKEN $ASPERA_USERNAME@aspera-hts-01-srv.lcsb.uni.lu:/<remote-dir> </local-dir>`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment