Re: disabling local-to-local transfers?
Francois Ouellet <[email protected]> Mon, 27 Jul 2026 13:55:02 -0400
| Newsgroups | gmane.network.openssh.devel |
|---|---|
| Message-ID | <8847541.2l3rmUXbR5@dev1> |
Le Friday, 24 July 2026, 16:48:28 EDT Samuel Thibault a =E9crit : > Theo de Raadt, le ven. 24 juil. 2026 14:15:44 -0600, a ecrit: > > Samuel Thibault <[email protected]> wrote: > > > I have never asked for changing the default. I just asked for being a= ble > > > to configure it. Here's a simple solution to your problem, for a bash shell, that doesn't ne= ed any source change : mkdir ~/scp-bin cat > ~/scp-bin/cp <<EOF #!/bin/sh echo "no local copy allowed" >&2 exit 1 EOF chmod 755 ~/scp-bin/cp alias scp=3D"PATH=3D~/scp-bin:$PATH scp"