Jun 152010
Specify a port with the scp command
Answer:
If you want to use scp to copy file to remote machine, but that ssh server is listening at port other than 22, you can use the following command syntax.
# scp -P 6000 test.txt john@remoteserver:/home/john/
Please notes it is -P, not -p.