Re: disabling local-to-local transfers?

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

Jim Knoble, le ven. 24 juil. 2026 07:14:38 -0700, a ecrit:
> > On Jul 24, 2026, at 04:25, Samuel Thibault <[email protected]> wrote:
> > 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.
> 
> This sounds like a job for an alias or a wrapper script that finds bare hostnames in the scp command line and adds a missing trailing ':' before invoking the real scp.

No, you don't want "smart" tools which try to guess what you actually
meant, and sometimes get thing wrong and fail horribly.

Samuel