Use SCP With Different Port Number

2019, May 17    

Example:

scp -P 30000 index.html  [email protected]:/home/user

-P port (Upper Case “P”)
Specifies the port to connect to on the remote host. Note that this option is written with a capital `P’, because -p is already reserved for preserving the times and modes of the file in rcp(1)