I use this command to copy all files whose names start with 'file' from a server. scp -vp me@server:/location/files* ./
But i got a 'No Match' error. probably Concerning the '' in the command. How can i protect the '' for ssh to understand that this refers to a list of files and not taking it as a filename.
Thx August
To copy a directory (and all the files it contains), use scp with the -r option. This tells scp to recursively copy the source directory and its contents. You'll be prompted for your password on the source system ( deathstar.com ). The command won't work unless you enter the correct password.
2) Unfortunatly, scp will not support wild cards as like rcp.
To copy files from a local system to a remote server or remote server to a local system, we can use the command 'scp' . 'scp' stands for 'secure copy' and it is a command used for copying files through the terminal. We can use 'scp' in Linux, Windows, and Mac.
SCP uses a single thread in SSH.
The shell itself is expanding the *
. You can escape this by quoting it or using backslashes to prevent the shell interpreting it and instead passing it directly to scp
:
scp -vp me@server:/location/files\*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With