How to scp with port number:

As all you know SCP command is used to copy file(s) between servers in secure way. The basic syntax of the SCP command is as follows,

scp source_file_name [email protected]_host:destination_folder

For example,

scp file.txt [email protected]:/usr/local/src/

This command will copy the file named file.txt to the remote server location /usr/local/src/

You can use the scp command with providing port name with the command. For that use the syntax,

scp -P portnumber filename [email protected]:destnation_folder

For example,

scp -P 2555 file.txt [email protected]:/usr/local/src/

That’s all

If you need our help to fix any issues with your server. Please feel free to contact us, simply email to [email protected]

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

[sep][/sep][button size=”large” color=”green” title=”Server Management from iServersupport” link=”http://iserversupport.com/cpanel-server-management/”]Server Management at just $59[/button]