1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/sftp.md
Peter Tripp eb973701a1 Rework scp.
* No double examples
 * Replace IP address with hostname place holders.
 * change word use to avoid upload & download
 * alter two remote hosts example, to not require agent forwarding.

Add SFTP examples.
2016-01-16 02:21:23 -08:00

503 B

sftp

Secure file transfer program. Copy files between hosts using Secure File Transfer Protocol over SSH.

  • Connect to a remote server and enter an interactive command mode:

sftp {{remote_user}}@{{remote_host}}

  • Connect using an alternate port:

sftp -P {{remote_port}} {{remote_host}}

  • Copy a local file to a remote host:

sftp {{local_file}} {{remote_host}}:{{/path/remote_file}}

  • Copy a remote file to the local host:

sftp {{remote_host}}:{{/path/remote_file}} {{local_file}}