< Home

scp server enable

Function

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.

Format

scp [ ipv4 | ipv6 ] server enable

undo scp [ ipv4 | ipv6 ] server enable

Parameters

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. -

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Enable the SCP service.

<HUAWEI> system-view
[HUAWEI] scp server enable

# Enable the SCP IPv4 service.

<HUAWEI> system-view
[HUAWEI] scp ipv4 server enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >