Public bug reported:

scp hangs indefinitely when brace-expanded glob has unmatched extensions
(SFTP mode)

OpenSSH version: OpenSSH_9.6p1 Ubuntu-3ubuntu13.16, OpenSSL 3.0.13 30 Jan 2024
OS: Ubuntu (client and server)

Steps to reproduce:
  scp -P 1022 user@host:/path/*.{sh,py,awk,c,lua} .

Where some extensions (e.g. .c, .awk) have no matching files on the
remote.

Expected behavior: error message and continue for unmatched patterns
Actual behavior: hangs indefinitely, requires Ctrl+C

Workaround: scp -O (legacy protocol) works correctly.
Note: single unambiguous globs (e.g. *.lua alone) work fine.

** Affects: openssh (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154232

Title:
   scp hangs indefinitely when brace-expanded glob has unmatched
  extensions (SFTP mode)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2154232/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to