Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/crypto/external/bsd/openssh/dist/scp.1,v rcsdiff: /ftp/cvs/cvsroot/src/crypto/external/bsd/openssh/dist/scp.1,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.23 retrieving revision 1.24 diff -u -p -r1.23 -r1.24 --- src/crypto/external/bsd/openssh/dist/scp.1 2021/03/05 17:47:16 1.23 +++ src/crypto/external/bsd/openssh/dist/scp.1 2021/09/02 11:26:18 1.24 @@ -1,4 +1,4 @@ -.\" $NetBSD: scp.1,v 1.23 2021/03/05 17:47:16 christos Exp $ +.\" $NetBSD: scp.1,v 1.24 2021/09/02 11:26:18 christos Exp $ .\" -*- nroff -*- .\" .\" scp.1 @@ -10,9 +10,9 @@ .\" .\" Created: Sun May 7 00:14:37 1995 ylo .\" -.\" $OpenBSD: scp.1,v 1.95 2021/01/26 15:40:17 naddy Exp $ +.\" $OpenBSD: scp.1,v 1.100 2021/08/11 14:07:54 naddy Exp $ .\" -.Dd January 26 2021 +.Dd August 11 2021 .Dt SCP 1 .Os .Sh NAME @@ -20,8 +20,9 @@ .Nd OpenSSH secure file copy .Sh SYNOPSIS .Nm scp -.Op Fl 346ABCpqrTv +.Op Fl 346ABCOpqRrsTv .Op Fl c Ar cipher +.Op Fl D Ar sftp_server_path .Op Fl F Ar ssh_config .Op Fl i Ar identity_file .Op Fl J Ar destination @@ -68,10 +69,10 @@ as host specifiers. .Pp When copying between two remote hosts, if the URI format is used, a .Ar port -may only be specified on the +cannot be specified on the .Ar target if the -.Fl 3 +.Fl R option is used. .Pp The options are as follows: @@ -80,10 +81,11 @@ The options are as follows: Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts. -Note that this option disables the progress meter and selects batch mode -for the second host, since +Note that, when using the legacy SCP protocol (the default), this option +selects batch mode for the second host as .Nm cannot ask for passwords or passphrases for both hosts. +This mode is the default. .It Fl 4 Forces .Nm @@ -110,6 +112,13 @@ to enable compression. Selects the cipher to use for encrypting the data transfer. This option is directly passed to .Xr ssh 1 . +.It Fl D Ar sftp_server_path +When using the SFTP protocol support via +.Fl M , +connect directly to a local SFTP server program rather than a +remote one via +.Xr ssh 1 . +This option may be useful in debugging the client and server. .It Fl F Ar ssh_config Specifies an alternative per-user configuration file for @@ -136,6 +145,12 @@ This option is directly passed to .Xr ssh 1 . .It Fl l Ar limit Limits the used bandwidth, specified in Kbit/s. +.It Fl O +Use the legacy SCP protocol for file transfers instead of the SFTP protocol. +Forcing the use of the SCP protocol may be necessary for servers that do +not implement SFTP or for backwards-compatibility for particular filename +wildcard patterns. +This mode is the default. .It Fl o Ar ssh_option Can be used to pass options to .Nm ssh @@ -160,7 +175,6 @@ For full details of the options listed b .It CanonicalizePermittedCNAMEs .It CASignatureAlgorithms .It CertificateFile -.It ChallengeResponseAuthentication .It CheckHostIP .It Ciphers .It Compression @@ -225,6 +239,15 @@ original file. Quiet mode: disables the progress meter as well as warning and diagnostic messages from .Xr ssh 1 . +.It Fl R +Copies between two remote hosts are performed by connecting to the origin +host and executing +.Nm +there. +This requires that +.Nm +running on the origin host can authenticate to the destination host without +requiring a password. .It Fl r Recursively copy entire directories. Note that @@ -237,6 +260,16 @@ to use for the encrypted connection. The program must understand .Xr ssh 1 options. +.It Fl s +Use the SFTP protocol for file transfers instead of the legacy SCP protocol. +Using SFTP 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 Disable strict filename checking. By default when copying files from a remote host to a local directory @@ -266,6 +299,7 @@ debugging connection, authentication, an .Xr ssh-agent 1 , .Xr ssh-keygen 1 , .Xr ssh_config 5 , +.Xr sftp-server 8 , .Xr sshd 8 .Sh HISTORY .Nm