< Home

scp server enable

Function

The scp server enable command enables Secure Copy Protocol (SCP) service on the SSH server.

The undo scp server enable command disables SCP service on the SSH server.

By default, SCP service on the SSH server 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

To use SCP for file transfer, you need to first enable 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.
  • After you run the scp server enable command to enable the SCP service on the SSH server, the SSH monitoring port is enabled to listen for IPv4 and IPv6 protocol packets. To enable listening for IPv4 or IPv6 protocol packets separately, run the scp { ipv4 | ipv6 } server enable command.
  • After you run the undo scp server enable command to disable the SCP service on the SSH server, the SSH monitoring port is disabled from listening for IPv4 and IPv6 protocol packets. To disable listening for IPv4 or IPv6 protocol packets separately, run the undo scp { ipv4 | ipv6 } server enable command.

Example

# Enable SCP services.

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

# Enable SCP IPv4 services.

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