ohmyzsh: SCP don't accept wildcard

When i try to do a SCP from other server to my system with wildcards i have an error:

jlruizmlg@MacBook-Pro-de-Jose  ~  scp jlruizmlg@192.168.78.140:/tmp/wazuh-ossec-2.0.12.tar.*  Desktop
zsh: no matches found: jlruizmlg@192.168.78.140:/tmp/wazuh-ossec-2.0.12.tar.*

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

You can alias scp to noglob scp so that you don’t have to do it yourself all the time. Don’t alias scp, you’ll get problems like the user below.

Put the path including the wildcard between quotes so that zsh doesn’t try to expand it to a local file. Another solution is putting noglob before the scp command.