3Com 4500 50-PORT Switch User Manual


 
SSH Terminal Service Configuration Commands 423
[SW4500-ui-vty0-4]protocol inbound ssh
To disable the Telnet function of VTY 0 and make it support SSH only:
[SW4500]user-interface vty 0
[SW4500-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 the public key edit view and
input the public key of the client.
When inputting the public key, you may type spaces between the characters (the
system will delete the spaces automatically), or press Enter and continue to input
the key. Note that the public key must be a hexadecimal string coded in the public
key format and is randomly generated by the SSH 2.0-enabled client software.
Related commands: rsa peer-public-key, public-key-code end.
Example
To enter the public key edit view and input the key, enter the following:
[SW4500]rsa peer-public-key quidway003
[SW4500-rsa-public-key]public-key-code begin
[SW4500-key-code]308186028180739A291ABDA704F5D93DC8FDF84C427463
[SW4500-key-code]1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[SW4500-key-code]D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[SW4500-key-code]0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[SW4500-key-code]C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[SW4500-key-code]BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[SW4500-key-code]public-key-code end
[SW4500-rsa-public-key]
public-key-code end Syntax
public-key-code end
View
Public key edit view
Parameter
None
Description
Use the public-key-code end command to return from the public key edit view
to the public key view and save the public key entered.