bugzilla-daemon at bugzilla
Mar 5, 2012, 9:40 PM
Post #1 of 1
[Bug 1989] New: SCP wihout a source path
Bug #: 1989
Summary: SCP wihout a source path
Product: Portable OpenSSH
AssignedTo: unassigned-bugs [at] mindrot
ReportedBy: cent9ur [at] gmail
I regularly use scp to copy files between hosts like this:
"scp -prv user [at] remotehos:/path/to/copy ."
However, today, I made a mistake and typed this instead:
"scp -prv user [at] remotehos: /path/to/copy ."
This started copying user [at] remotehost $HOME to . on the local host I
So I have now tried "scp -prv user [at] remotehos: ." which also copies
$HOME to . on the local host. I did not know you could do this. I am
under the impression that I must always include a path or at least a
"/" after ":" as this is how I interpret the "file" in the man pages as
it does not have ""
Additionally, if I use "scp -prv user [at] remotehos: /path/to/copy ." it
starts writing everything to . instead of /path/to/copy.
Is this a bug?
"Linux myhostname 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011
x86_64 x86_64 x86_64 GNU/Linux"
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
openssh-bugs mailing list
openssh-bugs [at] mindrot