By default, scp(1) now uses SFTP protocol
by from OpenBSD Journal on (#5PCB7)
Thanks to acommitby Damien Miller (djm@),scp(1) (in -current)now defaults to using theSFTP protocol:
CVSROOT:/cvsModule name:srcChanges by:djm@cvs.openbsd.org2021/09/08 17:31:39Modified files:usr.bin/ssh : scp.1 scp.c Log message:Use the SFTP protocol by default. The original scp/rcp protocol remainsavailable via the -O flag.Note that ~user/ prefixed paths in SFTP mode require a protocol extensionthat was first shipped in OpenSSH 8.7.ok deraadt, after baking in snaps for a while without incident
As explained in theOpenSSH Release Notes,
SFTP offers more predictable filename handlingand does not require expansion ofglob(3) patterns via the shellon the remote side.