Interactive secure file transfer
medium risk
FTP-like file transfer over SSH. See the flags and examples below, and run `man sftp` for the full reference.
| Flag | Meaning |
|---|---|
-P | Port |
-r | Recursive |
-b | Batch file |
sftp user@hostInteractive session · explain & risk-check →sftp -P 2222 user@hostDifferent port · explain & risk-check →Reference text is hand-written and may be incomplete — check man sftp for your version. Test destructive commands on a non-production system first.