Using the File Fabric’s SFTP protocol adaptor to work with multi-cloud files from a Linux Console

multi-cloud SFTPSFTP is an acronym for the SSH File Transfer Protocol. SFTP is the preferred option to FTP because it is inherently more secure and is able to piggyback on an SSH connection.

You may have often found yourself on a linux console where you need access to a file that you have stored on Google Drive, an Amazon  S3 or Azure instance, or perhaps you want to transfer a file back from a local file system to one of these accounts. In either case it would be good to be able to do this without installing and setting up additional software.

SFTP to the rescue ! This guide will demonstrate how you can use the File Fabric’s support for SFTP to send or get a file to any of the 60+ storage endpoints that are accessible to the File Fabric.

To connect to the File Fabric it is standard SFTP syntax ie.

sftp -P 2200 username@<FileFabricDNSName>

Once you are logged in, this is where SFTP can work its magic.

pwd

This will print the remote File Fabric directory. By default it will be the root of your multi-cloud instance with all multi-cloud directories accessible

ls

This will list the remote File Fabric directory infrastructure so will list your mapped multi-cloud accounts ie. Amazon S3, Google Storage, Azure etc.

lpwd

This prints the local working directory

lls

This will list the files in the local directory

get remoteFileName

This is the command to easily download a file  from the File fabric to the local   machine.

get remoteFileName localFileName

If you want to copy the remoteFileName to a different local FileName this is the command you will need.

put localFileName

Lastly if you would like to transfer a file from the local machine to the File Fabric you can simply execute a put.

SFTP is a real useful tool to have in your toolkit and with the Enterprise File Fabric it can easily be used with multi-cloud data.

If you are looking way to accelerate data in your existing workflows then check out our prior article on GoLang integration with our M-Stream API.

Facebooktwitterredditpinterestlinkedinmailby feather
The following two tabs change content below.