SSH Configuration Commands 517
telnet: Supports only Telnet protocol.
Description
Use the protocol inbound command to configure the protocols supported by a
designated user interface.
By default, the system supports both Telnet and SSH protocols.
If SSH protocol is enabled and specified for the user interface, but no local RSA key
is configured, SSH cannot take effect yet till you log onto the system next time.
If SSH protocol is specified, to ensure a successful logon, you must configure the
AAA authentication using the
authentication-mode scheme command. The
protocol inbound ssh configuration fails if you configure
authentication-mode password and authentication-mode none.
Related command: user-interface vty.
Example
Disable Telnet on vty0 through vty4, with only SSH available:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]user-interface vty 0 4
[SW5500-ui-vty0-4]protocol inbound ssh
Disable Telnet on vty0, with only SSH available.
<SW5500> system-view
System View: return to User View with Ctrl+Z.
[SW5500]user-interface vty 0
[SW5500-ui-vty0]protocol inbound ssh
public-key-code begin Syntax
public-key-code begin
View
Public key edit view
Parameter
None
Description
Use the public-key-code begin command to enter public key edit view.
Before using this command, you have to create a public key with the rsa
peer-public-key
command. In the public key edit view to key in desired public
key, which consists of hexadecimal characters, with blank space allowed between
them, and is generated randomly by the client program supporting SSH.
Related commands: rsa peer-public-key, public-key-code end.
Example
To enter public key view and key in public key, enter the following: