[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
All you guys are reporting a completely different bug. The original report was specifically about the output under -v, not about the need to escape filenames inconveniently for scp. While scp's behaviour is inconvenient, it is rather unlikely to change since scp's interface is necessarily frozen for compatibility purposes. The future is sftp, which has a proper protocol. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
All you guys are reporting a completely different bug. The original report was specifically about the output under -v, not about the need to escape filenames inconveniently for scp. While scp's behaviour is inconvenient, it is rather unlikely to change since scp's interface is necessarily frozen for compatibility purposes. The future is sftp, which has a proper protocol. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Matt, as was stated 2 posts above, its the correct behavior to have to double quote or add 3 backslashes. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Matt, as was stated 2 posts above, its the correct behavior to have to double quote or add 3 backslashes. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
I'm still experiencing this bug. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
I'm still experiencing this bug. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
If you run scp with the '-v' (verbose) you can see what command is actually run. It should be in the first line of output. Without using any \ or (or ') the filename are treated by the local shell as 3 arguments to scp instead of one; the filename. In the first case the \ are expanded by the local shell and the result are passed to scp. I.e \\ becames a \ and '\ ' becames ' ', so the string that are passed to scp is actually 'testmachine:File\ with\ spaces', which are then expanded on the remote side, using the same rules. In the second case the \ are not expanded by the local shell because of the . The string (including \) are thus expanded on the remote side. There is actually a third version you can use (at least for the moment): scp testmachine:'File with spaces', i.e using both single and double quotes. The first pair is removed by the local shell and the second pair on the remote side. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
If you run scp with the '-v' (verbose) you can see what command is actually run. It should be in the first line of output. Without using any \ or (or ') the filename are treated by the local shell as 3 arguments to scp instead of one; the filename. In the first case the \ are expanded by the local shell and the result are passed to scp. I.e \\ becames a \ and '\ ' becames ' ', so the string that are passed to scp is actually 'testmachine:File\ with\ spaces', which are then expanded on the remote side, using the same rules. In the second case the \ are not expanded by the local shell because of the . The string (including \) are thus expanded on the remote side. There is actually a third version you can use (at least for the moment): scp testmachine:'File with spaces', i.e using both single and double quotes. The first pair is removed by the local shell and the second pair on the remote side. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
could you care explain why is it this way? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Ubuntu 8.04, i386. I can confirm that I can repeat the issue as demonstrated by eldragon. Problem is not fixed. I cannot copy (scp) file with space in filename from one machine to other. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Use tripple \ for escaping the space. I.e scp testmachine:File\\\ with\\\ spaces ./ -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
or use quotes and single \ around the filename, i.e: scp testmachine:File\ with\ spaces ./ -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
could you care explain why is it this way? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
ok, this is not fixed at all, this is what i get when trying to scp a file with an escaped character [code] [EMAIL PROTECTED]:~$ touch test\ file [EMAIL PROTECTED]:~$ logout Connection to emmet closed. [EMAIL PROTECTED]:~$ scp [EMAIL PROTECTED]:test\ file ./ scp: test: No such file or directory scp: file: No such file or directory [EMAIL PROTECTED]:~$ ssh -V OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 [/code] is this the same bug im experiencing? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
ok, this is not fixed at all, this is what i get when trying to scp a file with an escaped character [code] [EMAIL PROTECTED]:~$ touch test\ file [EMAIL PROTECTED]:~$ logout Connection to emmet closed. [EMAIL PROTECTED]:~$ scp [EMAIL PROTECTED]:test\ file ./ scp: test: No such file or directory scp: file: No such file or directory [EMAIL PROTECTED]:~$ ssh -V OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 [/code] is this the same bug im experiencing? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
ok, this is not fixed at all, this is what i get when trying to scp a file with an escaped character [code] [EMAIL PROTECTED]:~$ touch test\ file [EMAIL PROTECTED]:~$ logout Connection to emmet closed. [EMAIL PROTECTED]:~$ scp [EMAIL PROTECTED]:test\ file ./ scp: test: No such file or directory scp: file: No such file or directory [EMAIL PROTECTED]:~$ ssh -V OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 [/code] is this the same bug im experiencing? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
ok, this is not fixed at all, this is what i get when trying to scp a file with an escaped character [code] [EMAIL PROTECTED]:~$ touch test\ file [EMAIL PROTECTED]:~$ logout Connection to emmet closed. [EMAIL PROTECTED]:~$ scp [EMAIL PROTECTED]:test\ file ./ scp: test: No such file or directory scp: file: No such file or directory [EMAIL PROTECTED]:~$ ssh -V OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 [/code] is this the same bug im experiencing? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
This bug was fixed in the package openssh - 1:4.7p1-8ubuntu1 --- openssh (1:4.7p1-8ubuntu1) hardy; urgency=low * Resynchronise with Debian. Remaining changes: - Add support for registering ConsoleKit sessions on login. openssh (1:4.7p1-8) unstable; urgency=high * Fill in CVE identifier for security vulnerability fixed in 1:4.7p1-5. * Rename KeepAlive to TCPKeepAlive in sshd_config, cleaning up from old configurations (LP: #211400). * Tweak scp's reporting of filenames in verbose mode to be a bit less confusing with spaces (thanks, Nicolas Valcárcel; LP: #89945). * Backport from 4.9p1: - Ignore ~/.ssh/rc if a sshd_config ForceCommand is specified (see http://www.securityfocus.com/bid/28531/info). - Add no-user-rc authorized_keys option to disable execution of ~/.ssh/rc. * Backport from Simon Wilkinson's GSSAPI key exchange patch for 5.0p1: - Add code to actually implement GSSAPIStrictAcceptorCheck, which had somehow been omitted from a previous version of this patch (closes: #474246). -- Colin Watson [EMAIL PROTECTED] Sun, 06 Apr 2008 12:44:11 +0100 ** Changed in: openssh (Ubuntu) Status: Fix Committed = Fix Released -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Hmm, strnvis isn't quite right. I guess this unreliable quoting (consider what happens if the filename contains a single quote!) is OK for something that is just for human consumption, though I'd still like something that actually corresponds to real shell quoting in future. I'll apply a variant of this for the meantime. By the way, please don't change the Maintainer field when it already contains an address @ubuntu.com. ** Changed in: openssh (Ubuntu) Assignee: (unassigned) = Colin Watson (kamion) Status: Confirmed = Fix Committed -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Hmm, strnvis isn't quite right. I guess this unreliable quoting (consider what happens if the filename contains a single quote!) is OK for something that is just for human consumption, though I'd still like something that actually corresponds to real shell quoting in future. I'll apply a variant of this for the meantime. By the way, please don't change the Maintainer field when it already contains an address @ubuntu.com. ** Changed in: openssh (Ubuntu) Assignee: (unassigned) = Colin Watson (kamion) Status: Confirmed = Fix Committed -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Should use strnvis instead, I suspect. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Should use strnvis instead, I suspect. -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Colin: could you please take a look at it? -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
Attaching corresponding debdiff ** Attachment added: openssh_4.7p1-4ubuntu2.debdiff http://launchpadlibrarian.net/12596711/openssh_4.7p1-4ubuntu2.debdiff ** Changed in: openssh (Ubuntu) Status: New = Confirmed -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 89945] Re: scp doesn't report correct filenames with spaces in verbose mode
I'm attaching the patch of this bug fur revision. ** Attachment added: openssh-4.3p2.patch http://launchpadlibrarian.net/8218985/openssh-4.3p2.patch -- scp doesn't report correct filenames with spaces in verbose mode https://bugs.launchpad.net/bugs/89945 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs