scp does a local copy when ommiting :

Christian Gut cycloon at is-root.org
Wed Sep 1 04:14:44 EST 2004


Hi,

I run into this quiet often:

If you forget to add the : after the hostname you want to copy a file
to, then scp does a simple local copy. This is quiet confusing if you
dont notice it:

"scp foo.txt server.bar.com:" (copies the file to remote homedir)
"scp foo.txt server.bar.com" (creates the new file server.bar.com)

I don't know if this behaviour is intended or even needed, but if not I
would be glad if this could be fixed to prevent some mistakes.

Thanks

Christian Gut
-- 
Christian Gut <cycloon at is-root.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20040831/c875ab55/attachment.bin 


More information about the openssh-unix-dev mailing list