The scp server enable command enables the SCP service on the SSH server.
The undo scp server enable command disables the SCP service on the SSH server.
By default, the SCP function is disabled.
Parameter | Description | Value |
---|---|---|
ipv4 | Indicates that the SCP IPv4 service is enabled on the SSH server. | - |
ipv6 | Indicates that the SCP IPv6 service is enabled on the SSH server. | - |
Usage Scenario
To use SCP for file transfer, you need to first enable the SCP service on the SSH server. The client can establish an SCP connection with the SSH server only after SCP service has been enabled on the SSH server.
Precautions
After the scp server enable command is run, the device receives login connection requests from all interfaces by default. Therefore, there are security risks. You are advised to run the ssh server-source command to specify the source interface of the SCP server.
After the scp server enable command is run, the numbers of IPv4 port and IPv6 port are both changed. To change the number of IPv4 port or IPv6 port separately, run the scp [ ipv4 | ipv6 ] server enable command.