Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

sftp

Secure File Transfer Protocol

Syntax

sftp [OPTION]... [USER@]HOST[:PATH]

Common Options

-PSpecify port
-iSpecify identity file
-rRecursive copy
-bRead commands from file
-CEnable compression

Common Examples

sftp user@hostname

Connect to SFTP server

sftp -P 2222 user@hostname

Connect with specific port

sftp -i ~/.ssh/key.pem user@hostname

Connect with key file

sftp user@hostname:/path/file .

Download specific file

Related Commands

Related Tools

More Code & Dev Tools