Notes on Linux SCP command using specific port

Notice that minus P capital


The instance
1. Get files or folders from a remote server

 scp -r -P Port number Login name @ip address:Remote folder path Local folder path

2. Put the file on the remote server
For example, upload the test directory under the current directory to the server’s /var/www. directory

scp -r test  [email protected]:/var/www/   

Read More: