Comware

 View Only
Expand all | Collapse all

How to enable SSH on H3C S5800?

This thread has been viewed 1 times
  • 1.  How to enable SSH on H3C S5800?

    Posted Jan 05, 2015 03:07 PM

    Hello folks,

     

    I am trying to figure out how to enable a new user for SSH access.

     

     

    <H3C> system-view

    [H3C] interface vlan-interface 1

    [H3C-Vlan-interface1] ip address 192.168.32.30 255.255.255.0

    [H3C-Vlan-interface1] quit

     

    # This command was not available!

    [H3C] rsa local-key-pair create

     

    # Set the authentication mode for the user interfaces to AAA.

    [H3C] user-interface vty 0 4

    [H3C-ui-vty0-4] authentication-mode scheme

     

    # Enable the user interfaces to support SSH.

    [H3C-ui-vty0-4] protocol inbound ssh

    [H3C-ui-vty0-4] quit

     

    # Create local client “client001”, and set the authentication password to “abc”, protocol type to SSH, and command privilege level to 3 for the client.

    [H3C] local-user sshuser

    [H3C-luser-client001] password simple abc

    [H3C-luser-client001] service-type ssh level 3

    [H3C-luser-client001] quit

     

    # Specify the authentication method of user client001 as password  This command was not available.

    [H3C] ssh user sshuser authentication-type password

    # Instead I ran this command available.

    [H3C] ssh user sshuser service-type all authentication-type password

     

    I can ping it but connection is refused.

     

    I am following this article example. 

    http://www.h3c.com/portal/Technical_Support___Documents/Technical_Documents/Switches/H3C_S3100_Series_Switches/Configuration/Typical_Configuration_Example/Low-end_E_S_Configuration_Examples(V1.04)/200809/616197_1285_0.htm#_Ref162322314

     

    Anyone have a suggestion?


    #ssh


  • 2.  RE: How to enable SSH on H3C S5800?

    Posted Jan 07, 2015 02:32 AM

    You should add:

     

    [...]

    ssh server enable

    public local create rsa

     

    local-user sshuser

      password simple abc

      service-type ssh

      authorization-attribute level 3

     [...]

     

    That will solve your issue.

     

    br

    Manuel



  • 3.  RE: How to enable SSH on H3C S5800?

    Posted Jan 07, 2015 09:15 AM

    Thank you very much!  That worked!!