SCP generally takes port 873 to connect another machines to copy the files but in some cases due to security reason SCP will be allowed in different ports. How can access if it allowed in different port. We need to connect like below.

scp -P 6004 user@34.343.343.3 

Here port 6004 is used for SCP connection