disabling local-to-local transfers?

Jim Knoble jmknoble at pobox.com
Sat Jul 25 00:14:38 AEST 2026


> On Jul 24, 2026, at 04:25, Samuel Thibault <samuel.thibault at ens-lyon.org> wrote:
> 
> 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.

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.

-- 
jim knoble


More information about the openssh-unix-dev mailing list