I was connected my OpenSSH, but What's the command for ssh to find all files which are *.png and get them at the same time, recursively
You can list files of your interest with
where the internal pair of single quotes are needed to avoid local shell pathname expansion of
The two types of quotes could be exchanges, and other syntaxes could be used, like
If you don't have .png in remote home directory, there is no difference between the two commands, but it is better to be safe.
The fastest way I know is to create tar.gz remotely, transfer it via SSH and untar locally:
This will work with filenames with spaces and is faster than