Configuration file of the SSH Login User>HUAWEI-Switch

gpontutorials.com-Configuration file of the SSH Login User
gpontutorials.com-Configuration file of the SSH Login User

***Configuration file of the SSH Login User***

Steps:

1.Generate the local key pair.

[S-switch] rsa local-key-pair create

2.Configure the user client001; set the password to huawei1;
set the authentication mode to password. The user interface supports only the SSH protocol.

[S-switch] user-interface vty 0 4
[S-switch-ui-vty0-4] authentication-mode aaa
[S-switch-ui-vty0-4] protocol inbound ssh
[S-switch-ui-vty0-4] quit
[S-switch] aaa
[S-switch-aaa] local-user client001 password simple huawei1
[S-switch-aaa] quit
[S-switch] ssh user client001 authentication-type password

3.Configure the user client002; set the password to huawei2; set the authentication mode to RSA. The user interface supports only the SSH protocol.

[S-switch] aaa
[S-switch-aaa] local-user client002 password simple huawei2
[S-switch-aaa] quit

[S-switch] ssh user client002 authentication-type rsa

4.Generate the RSA public key by using the client software that supports SSH1.5.

5.Send the RSA public key generated on the client software that supports SSH1.5 to the server.

[S-switch] rsa peer-public-key quidway002

Enter “RSA public key” view, return system view with “peer-public-key end”.

[S-switch-rsa-public-key] public-key-code begin

Enter “RSA key code” view, return last view with “public-key-code end”.

[S-switch-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[S-switch-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[S-switch-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[S-switch-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[S-switch-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[S-switch-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[S-switch-rsa-key-code] public-key-code end
[S-switch-rsa-public-key] peer-public-key end

[S-switch] ssh user client002 assign rsa-key quidway002

6.Run the client software that supports SSH1.5 on the terminal which has reserved the RSA private key.

***END of Configurations***

Configuration Procedure>>

*****Congratulations*****

 
 

Be the first to comment

Leave a Reply

Your email address will not be published.


*


For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.