Uploading local files to the server
scp/path/filename [Email protected]:/path/
For example scp/var/www/test.php [email protected]:/var/www/the test.php file in the native/var/www/directory to 192.168.0.101 directory on this server.
Downloading files from the server
SCP [Email protected]:/path/filename/var/www/local_dir (Local directory)
For example SCP [email protected]:/var/www/test.txt to download/var/www/test.txt files on 192.168.0.101 to/var/www/local_dir (local directory)
Download the entire directory from the server
scp-r [Email protected]:/var/www/remote_dir/(remote directory)/var/www/local_dir (local directory)
Example: scp-r [email protected]:/var/www/test/var/www/
Upload directory to server
Scp-r Local_dir [Email protected]:remote_dir
For example: scp-r test [email protected]:/var/www/upload the test directory under the current directory to the/var/www/directory of the server
Use SCP command with remote server for file transfer under Linux environment