sftp
Secure File Transfer Program. Interactive program to copy files between hosts over SSH. For non-interactive file transfers, see
scporrsync. More information: https://manned.org/sftp.
- Connect to a remote server and enter an interactive command mode:
sftp @
- Connect using an alternate port:
sftp -P @
- Connect using a predefined host (in
~/.ssh/config):
sftp
- [Interactive] Transfer remote file to the local system:
get
- [Interactive] Transfer local file to the remote system:
put
- [Interactive] Transfer remote directory to the local system recursively (works with
puttoo):
get -R
- [Interactive] Get list of files on local machine:
lls
- [Interactive] Get a list of files on the remote machine:
ls
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
