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
- Running SCP in quiet mode
- Is it possible to SCP files in parallel?
- How to show progress when using SCP?
- How to overwrite files using SCP?
- How to transfer files using wildcards with SCP?
- How to use an SSH key when using SCP?
- How to automatically create destination directory when using SCP?
- How to run SCP in verbose mode?
- How to use SCP with a password?
See more codes...