HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable SSH on H3C S5800?

 
SOLVED
Go to solution

How to enable SSH on H3C S5800?

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?

2 REPLIES
manuel.bitzi
Trusted Contributor
Solution

Re: How to enable SSH on H3C S5800?

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

H3CSE, MASE Network Infrastructure [2011], Switzerland

Re: How to enable SSH on H3C S5800?

Thank you very much!  That worked!!