Bug#603778: safety catch to prevent accidental local copying
Package: openssh-client
Version: 1:5.5p1-5+b1
Severity: wishlist
File: /usr/bin/scp
As scp is for remote copying, can we please have a safety catch
installed that will prevent local copying in case one mistypes something.
$ set /home/jidanni/jidanni.org/location/dj.kmz
$ scp $1 jidanni.org;$1
bash: /home/jidanni/jidanni.org/location/dj.kmz: Permission denied
$ scp $1 jidanni.org:$1
Maybe have --yes-I-mean-local to enable local copying.
Note there is no cp -i protection one can use.
Maybe have a .ssh option that can turn on/off local copying.
Reply to: