scp only files with defined extension

Solution 1:

This absolutely is possible

scp 192.168.1.2:/srv/myfiles/\{*.tar.gz,*.war\} .

Solution 2:

$ ssh 33 ls \{\*.log,\*.py\}
engine.log
install.log
parser_lex.py


$ scp 33:\{\*.log,\*.py\} /tmp/
engine.log                                                                                                                   100%   45     0.0KB/s   00:00    
install.log                                                                                                                  100%   18KB  18.0KB/s   00:00    
parser_lex.py                                                                                                                100% 2600     2.5KB/s   00:00