disabling local-to-local transfers?

Samuel Thibault <[email protected]> Fri, 24 Jul 2026 13:19:34 +0200
Newsgroups gmane.network.openssh.devel
Organization I am not organized
Message-ID <amNKRogIBVehw8qo@end>
Hello,

Are local-to-local "transfers" really a useful feature?

  scp foo my.server.com

forgetting to type the trailing ':' creates a "my.server.com" file
instead of producing an error.

I have *never* seen this feature useful to me, while I get hit by the
issue from times to times, and I have to remove the "my.server.com"
file getting created. Worse, it did cost me a lot of time this morning
because I didn't notice that the file didn't actually get transferred,
and thus I used a previous version, which submitted 3 days of work to my
server...

Could there at least be an option which we can put in one's default
config or shell aliases to disable the local-to-local transfer and
produce an error instead?

With regards,
Samuel