$ sftp user@host
$ sftp -P 2222 -i key user@host
$ sftp -b batch.txt user@host
| -P | connect to this port on the remote host |
| -i | use this identity (private key) file |
| -o | pass this option through to ssh |
| -b | read batch commands from this file (non-interactive) |
| -r | recursively copy entire directories |
| -l | limit the transfer bandwidth (Kbit/s) |
| -a | resume (append to) partial transfers of existing files |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.