version 1.98, 2021/08/09 23:56:36 |
version 1.99, 2021/08/10 03:33:34 |
|
|
.Nd OpenSSH secure file copy |
.Nd OpenSSH secure file copy |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm scp |
.Nm scp |
.Op Fl 346ABCpqRrTv |
.Op Fl 346ABCOpqRrsTv |
.Op Fl c Ar cipher |
.Op Fl c Ar cipher |
.Op Fl D Ar sftp_server_path |
.Op Fl D Ar sftp_server_path |
.Op Fl F Ar ssh_config |
.Op Fl F Ar ssh_config |
.Op Fl i Ar identity_file |
.Op Fl i Ar identity_file |
.Op Fl J Ar destination |
.Op Fl J Ar destination |
.Op Fl l Ar limit |
.Op Fl l Ar limit |
.Op Fl M Ar scp | sftp |
|
.Op Fl o Ar ssh_option |
.Op Fl o Ar ssh_option |
.Op Fl P Ar port |
.Op Fl P Ar port |
.Op Fl S Ar program |
.Op Fl S Ar program |
|
|
This option is directly passed to |
This option is directly passed to |
.Xr ssh 1 . |
.Xr ssh 1 . |
.It Fl D Ar sftp_server_path |
.It Fl D Ar sftp_server_path |
When using the experimental SFTP protocol support via |
When using the SFTP protocol support via |
.Fl M , |
.Fl M , |
connect directly to a local SFTP server program rather than a |
connect directly to a local SFTP server program rather than a |
remote one via |
remote one via |
|
|
.Xr ssh 1 . |
.Xr ssh 1 . |
.It Fl l Ar limit |
.It Fl l Ar limit |
Limits the used bandwidth, specified in Kbit/s. |
Limits the used bandwidth, specified in Kbit/s. |
.It Fl M Ar scp | sftp |
.It Fl O |
Specifies a mode which will be used to transfer files. |
Use the legacy SCP protocol for file transfers instead of the SFTP protocol. |
The default is to use the original |
Forcing the use of the SCP protocol may be necessary for servers that do |
.Cm scp |
not implement SFTP or for backwards-compatibility for particular filename |
protocol. |
wildcard patterns. |
Alternately, experimental support for using the |
This mode is the default. |
.Cm sftp |
|
protocol is available. |
|
.It Fl o Ar ssh_option |
.It Fl o Ar ssh_option |
Can be used to pass options to |
Can be used to pass options to |
.Nm ssh |
.Nm ssh |
|
|
The program must understand |
The program must understand |
.Xr ssh 1 |
.Xr ssh 1 |
options. |
options. |
|
.It Fl s |
|
Use the SFTP protocol for file transfers instead of the legacy SCP protocol. |
|
Using SFTP provides avoids invoking a shell on the remote side and provides |
|
more predictable filename handling, as the SCP protocol |
|
relied on the remote shell for expanding |
|
.Xr glob 3 |
|
wildcards. |
|
.Pp |
|
A near-future release of OpenSSH will make the SFTP protocol the default. |
|
This option will be deleted before the end of 2022. |
.It Fl T |
.It Fl T |
Disable strict filename checking. |
Disable strict filename checking. |
By default when copying files from a remote host to a local directory |
By default when copying files from a remote host to a local directory |
|
|
.Xr ssh-agent 1 , |
.Xr ssh-agent 1 , |
.Xr ssh-keygen 1 , |
.Xr ssh-keygen 1 , |
.Xr ssh_config 5 , |
.Xr ssh_config 5 , |
|
.Xr sftp-server 8 , |
.Xr sshd 8 |
.Xr sshd 8 |
.Sh HISTORY |
.Sh HISTORY |
.Nm |
.Nm |