LogoLogo
Home
  • ExaVault Documentation
  • Installing & Upgrading The Appliance
    • Downloading The Base Image
    • System Requirements
    • Firewall Configuration
    • Installation & Setup
      • AWS Installation
      • VMWare Prerequisites
    • Mounting the Data Drive
    • Upgrading to v18.x from v16.10
      • VMWare Upgrade Prerequisites
    • Upgrading From 16.05 or Earlier
  • Using ExaVault
    • Users
      • SSH Key Authentication
        • Creating an SSH Key on Windows
        • Creating an SSH Key on Linux
        • Creating an SSH Key on macOS
      • Export List of Users and Groups
      • Two-Factor Authentication (2FA)
      • Single Sign On (SSO), SAML, SCIM
    • Links (Share Links)
    • Notifications
    • Ciphers
    • Customizing Your Site
      • Login Page
      • Contact Information
      • Custom CSS
      • Custom Terms of Use Agreement
  • Connection Methods
    • SFTP
      • Supported SSH Ciphers
      • Maximizing SFTP Performance
      • Command Line SFTP Examples
      • Troubleshooting SFTP
    • FTP and FTPS
      • Troubleshooting FTP
    • WebDAV
  • Administration Tasks
    • Restarting the Appliance
    • Logging
    • License Keys
    • Installing or Updating SSL Certificate
    • Increasing Available Storage
    • Deleting Old Activity
    • Deleting Old Quotas
    • Appliance Manager Password Reset
  • Premium Features
  • Migrating to Files.com Cloud
    • Migration Process Overview
    • Technical Enablement Steps
    • Regional Considerations
  • HyperPrivacy Mode
    • User Home Folders
    • User Deletions
    • Sharing
    • Retention Rules
    • Trash Can
Powered by GitBook

©2023 Orange Platform LLC dba ExaVault. All rights reserved.

On this page
  • Command-Line SFTP Examples
  • To connect and authenticate
  • To connect and authenticate using a SSH/SFTP Key
  • To upload files
  • To download files
  • To download a folder
  1. Connection Methods
  2. SFTP

Command Line SFTP Examples

Command-Line SFTP Examples

Many operating systems come with a built in sftp command that can be used to connect and perform operations via SFTP.

To connect and authenticate

To connect to ExaVault, specify your username and the fully qualified domain name (FQDN) of your ExaVaultsite, separated by an @ character:

sftp username@MYCOMPANY.com

When prompted, enter your password.

To connect and authenticate using a SSH/SFTP Key

Save the SSH/SFTP Key to a file on your computer. For example, my_ssh_key.key

Make sure that the key file has restricted access permissions, so that only your user ID can access the file. Remove the access permissions for Groups and Everyone, leaving only read permission for yourself.

Connect to ExaVault specifying the Key file by using the -i (identity file) flag.

For Mac/Linux:

sftp -i /path/to/my_ssh_key.key username@MYCOMPANY.com

For Windows:

sftp -i C:\path\to\my_ssh_key.key username@MYCOMPANY.com

To upload files

Upload a single file using the put command:

put file.ext

Upload multiple files using the mput (multiple put) command:

mput file1.ext file2.ext file3.ext

Or you can use a wildcard to match and upload multiple file names:

mput file*.ext

To upload a folder

Create the destination folder using the mkdir (make directory) command and make sure the folder name matches the name of the folder you’re trying to upload:

mkdir TheFolderName

Then upload the folder contents using the put -r (put recursively) command:

put -r TheFolderName/

To download files

Download a single file using the get command:

get file.ext

Download multiple files using the mget (multiple get) command:

mget file1.ext file2.ext file3.ext

Or you can use a wildcard to match and download multiple file names:

mget file*.ext

To download a folder

Create the local destination folder using the lmkdir (locally make directory) command and make sure the folder name matches the name of the folder you’re trying to download:

lmkdir TheFolderName

Set your local permissions using the lumask (locally set the mask for user permissions) command:

lumask 002

Download the folder contents using the get -r (get recursively) command:

get -r TheFolderName/

Using the lumask command to set the UMASK to 002 will set the correct permissions for all the files to download successfully. If you miss this step then you might see permission errors, where subfolders will be created but the files contained within them will fail to download.

PreviousMaximizing SFTP PerformanceNextTroubleshooting SFTP

Last updated 5 months ago