Linux Commands Helper
💬 Your AI-powered Linux assistant
sftp Command - Secure File Transfer Protocol
The sftp command provides an interactive file transfer session over SSH. It is used to securely upload, download, and manage files on remote systems.
Syntax
sftp [options] [[user@]host[:file]]
Examples
sftp user@remote
Start an SFTP session with a remote host.
put localfile.txt
Upload a file to the remote host.
get remotefile.txt
Download a file from the remote host.
Notes
- sftp uses SSH for secure data transfer and authentication.
- Supports interactive commands like
ls
,cd
,put
,get
,rm
, etc. - For scripted transfers, use
-b
to specify a batch file.