scpHow to use a different port when using SCP?
To use a different port when using SCP, you can use the -P option. For example, to use port 2222:
scp -P 2222 <source> <destination>
The -P option specifies the port to use for the connection.
-P: Specifies the port to use for the connection.<source>: The file or directory to be copied.<destination>: The destination of the copied file or directory.
Helpful links
More of Scp
- How to show progress when using SCP?
- Running SCP in quiet mode
- Is it possible to SCP files in parallel?
- How to list files using SCP?
- How to enable logging when using SCP?
- How to automatically create destination directory when using SCP?
- How to overwrite files using SCP?
- How to SCP a file?
- How to transfer files recursively using SCP?
- How to SCP to multiple hosts?
See more codes...