Deprecation of scp protocol and improving sftp client

raf ssh at
Mon Aug 3 09:48:30 AEST 2020

On Fri, Jul 31, 2020 at 04:29:13PM -0700, Ethan Rahn <ethan.rahn at> wrote:

> I wanted to bring this up again due to:
> This showcases a clear
> issue with scp which it sounds like cannot be fixed without breaking scp.
> This seems like it would lend some impetus to doing _something_, even if it
> breaks scp or necessitates using something new.
> Cheers,
> Ethan

Surely, executing the scp -t command without using the
shell would fix this without breaking any legitimate
usage. And it would be much easier and more effective
than sanitising the path. Paths can contain almost any

Mind you, it wouldn't stop the legitimate user from
just logging in and performing the same actions manually.
But it would help in cases where users can scp but not ssh
to a host.


More information about the openssh-unix-dev mailing list