Is it possible to make
scp fail when you do a local copy? I find it annoying to accidently create files with names like
192.168.11.5 when I meant to type
192.168.11.5: and hence copying the file to the remote computer.
migrated from serverfault.com Jan 12 '12 at 20:31
Not by default but if you want something quick you could just create a wrapper around it something like move the original binary to scp.orig and have a new shell script which takes the input, checks that there is a : in the input and passes it, if not prompts to continue ?
Edit: This post answers my question so I'm accepting but I wanted to add the shell function I wrote that solves the problem for me:
There's no such option in