SFTP

Secure file transfer protocol commands for managing files on remote Andasy application VMs

andasy ssh sftp

The andasy ssh sftp command provides secure file transfer capabilities using the SFTP protocol to interact with files on your Andasy application's virtual machines. This command suite enables you to browse, download, upload, and manage files remotely.

Overview

SFTP (SSH File Transfer Protocol) provides secure file transfer over SSH connections. With the andasy ssh sftp commands, you can:

  • Browse and list files on remote VMs
  • Download files and directories from your applications
  • Upload files and directories to your applications
  • Use an interactive SFTP shell for multiple operations
  • Manage file permissions during uploads

Syntax

andasy ssh sftp [command]

Available Commands

CommandDescription
findList files on a remote VM from an optional root directory
getRetrieve files or directories from a remote VM
putUpload files or directories to a remote VM
shellOpen an interactive SFTP session

Global Flags

-v, --verbose

Enable verbose output to see detailed information about the SFTP operations.

andasy ssh sftp get /app/config.yaml --verbose

-h, --help

Display help information for the sftp command or any subcommand.

andasy ssh sftp --help
andasy ssh sftp get --help

Quick Start Examples

List Files on Remote VM

andasy ssh sftp find /app -a my-app

Download a File

andasy ssh sftp get /app/config.yaml ./local-config.yaml -a my-app

Upload a File

andasy ssh sftp put ./deploy.sh /app/scripts/deploy.sh -a my-app

Interactive SFTP Session

andasy ssh sftp shell -a my-app

Common Use Cases

Backup Configuration Files

Download important configuration files for backup:

andasy ssh sftp get /app/config -R -a production-app

Deploy Scripts or Assets

Upload deployment scripts or static assets:

andasy ssh sftp put ./scripts /app/scripts -R -a my-app

Retrieve Log Files

Download log files for local analysis:

andasy ssh sftp get /var/log/app.log ./logs/ -a my-app

Browse Application Structure

Explore the directory structure of your application:

andasy ssh sftp find / -a my-app

Additional Resources

Command Details

For detailed information about each subcommand, see:


Note: SFTP access requires SSH connectivity to be enabled for your application. Contact your Andasy administrator if SFTP operations fail due to access restrictions.