upstream: Mention that scp uses the SFTP protocol and remove

reference to legacy flag. Spotted by, feedback and ok jmc@

OpenBSD-Commit-ID: 9dfe04966f52e941966b46c7a2972147f95281b3
This commit is contained in:
djm@openbsd.org 2022-12-16 07:13:22 +00:00 committed by Darren Tucker
parent 93f2ce8c05
commit 797da2812a
No known key found for this signature in database
1 changed files with 6 additions and 7 deletions

13
scp.1
View File

@ -8,7 +8,7 @@
.\" .\"
.\" Created: Sun May 7 00:14:37 1995 ylo .\" Created: Sun May 7 00:14:37 1995 ylo
.\" .\"
.\" $OpenBSD: scp.1,v 1.111 2022/12/16 03:40:03 djm Exp $ .\" $OpenBSD: scp.1,v 1.112 2022/12/16 07:13:22 djm Exp $
.\" .\"
.Dd $Mdocdate: December 16 2022 $ .Dd $Mdocdate: December 16 2022 $
.Dt SCP 1 .Dt SCP 1
@ -34,10 +34,11 @@
.Nm .Nm
copies files between hosts on a network. copies files between hosts on a network.
.Pp .Pp
It uses .Nm
uses the SFTP protocol over a
.Xr ssh 1 .Xr ssh 1
for data transfer, and uses the same authentication and provides the connection for data transfer, and uses the same authentication and provides
same security as a login session. the same security as a login session.
.Pp .Pp
.Nm .Nm
will ask for passwords or passphrases if they are needed for will ask for passwords or passphrases if they are needed for
@ -111,9 +112,7 @@ Selects the cipher to use for encrypting the data transfer.
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 SFTP protocol support via Connect directly to a local SFTP server program rather than a
.Fl M ,
connect directly to a local SFTP server program rather than a
remote one via remote one via
.Xr ssh 1 . .Xr ssh 1 .
This option may be useful in debugging the client and server. This option may be useful in debugging the client and server.