Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the scp commands to pull some files from the remote server and one variation of the command is not working.

I have 2 files names one.xml and two.xml in a remote server and I'm pulling these two files into the current dir using the following command:

scp stuadmin@ .
scp stuadmin@ .

The above command works fine but if I use wildcards to pull all the xml files in a single shot as shown below it returns scp: No match.

scp stuadmin@*.xml .

Why is it working if I pull the files individually and not working if I try to pull using wildcards.

share|improve this question
What shell are you using? Does it permit you to pass through wildcards to a command without escaping them? – David Schwartz Oct 22 '13 at 6:18
up vote 2 down vote accepted

I'm not sure why it's not working -- your simple example works in my tests.

As a potential suggestion, your wildcards may have to be escaped in order to avoid being interpreted by your local shell, before they get passed to the remote shell. So with your command, your local shell may be looking for files matching *.xml in your current working directory. Try encapsulating the remote part of the command with single quotes, as:

scp stuadmin@'/student/class/Intermediate/*.xml' .
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.