< Home

protocol inbound

Function

The protocol inbound command specifies the protocols that VTY user interfaces support.

The undo protocol inbound command restores the default protocols that VTY user interfaces support.

By default, VTY user interfaces support SSH.

Format

protocol inbound { all | ssh | telnet }

undo protocol inbound

Parameters

Parameter Description Value
all Indicates that all protocols including SSH and Telnet are supported. -
ssh Indicates that only SSH is supported. -
telnet Indicates that only Telnet is supported. -

Views

User interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To manage and monitor login users, configure VTY user interfaces for login users and run the protocol inbound command to configure the protocols that the VTY user interfaces support.

Prerequisites

If SSH is configured for a user interface using the protocol inbound ssh command, you must run the authentication-mode aaa command to configure AAA authentication. This ensures that a user can successfully log in to the user interface. If password authentication is configured, the protocol inbound ssh command does not take effect.

Precautions

  • The configuration takes effect at the next login.

  • When SSH is specified for the VTY user interface, if the SSH server function is enabled but the RSA, DSA, or ECC key is not configured, a user cannot log in to the SSH server using SSH.

  • Telnet is an insecure protocol. Using SSH is recommended.

Example

# Configure SSH for user interfaces VTY0 to VTY4.

<HUAWEI> system-view
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-4] authentication-mode aaa
[HUAWEI-ui-vty0-4] protocol inbound ssh
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >