I want to copy local file to a remote server using
scp -rp local-file my.server.com:/tmp/
Sometimes I forget to specify where on the remote server the file should be copied to:
scp -rp local-file my.server.com
or, other times I mistype
: for an
scp -rp local-file my.server.com;/tmp/
in both cases,
scp should fail. But instead, it behaves completely idiotically, and copies the local file locally, as
cp would do.
cp local-file my.server.com
man scp says that
remote file copy program. So why is it failing silently, and behaving like
Any way to fix this ?
My version of