Linux SCP Copy Directory to Remote Server using non-standard ssh Port
I have to use scp a lot from 1 server to another and sometimes a server is using a non-standard (22) ssh port, here is an example on how to scp in the instance with a directory or a file.
Example 1: scp a directory to a remote server using non-standard ssh port 222
scp -r -P 222 directory_test/ email@example.com:/usr/
Example 2: scp a file to a remote server using non-standard ssh port 222
scp -r -P 222 test_file.txt firstname.lastname@example.org:/usr/