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 service is disabled on the SSH server.

Format

scp server enable

undo scp server enable

Parameters

None

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

Usage Scenario

To use SCP for file transfer, you must enable the SCP service on the SSH server. A client can connect to a remote SSH server by SCP only after the SCP service is enabled on the SSH server.

The scp server enable command enables both ipv4 and ipv6 SCP service on the SSH server.

Precautions

If you disable the SCP service on the SSH server, all the clients that log in to the server through SCP will be disconnected.

Example

# Enable the SCP service on the SSH server.
<HUAWEI> system-view
[~HUAWEI] scp server enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >