Skip to main content
Logo

zsh using wildcard during remote copy

July 21, 2026
1 min read

When using zsh I noticed it does not want to expand a wildcard on the remote end when using scp or rsync. You can quote it to work.

❯ rsync -avn mgmt01:/home/ubuntu/*.md ./
zsh: no matches found: mgmt01:/home/ubuntu/*.md
❯ rsync -avn mgmt01:'/home/ubuntu/*.md' ./
Transfer starting: 1 files
NOTES.md