Set detailed commands for the switch SSH

Source: Internet
Author: User

Pay special attention to security when using vswitches. Next, we will analyze the content of setting up the switch SSH. We will introduce the SSH logon configuration of the H3C S3100 switch for public key and password authentication. We hope to help you complete the settings.

[S3100-SI] public-key local create rsa // generate local RSA key pair [S3100-SI] local-user h3c [S3100-SI-luser-h3c] password cipher h3c [S3100-SI-luser-h3c] service-typeSSHlevel 3 // create local the user service type is SSH.

The following uses puttygen to generate an rsa key pair, save the public key and private key files, and upload the file named gongyao to the vswitch. Then, perform the following Configuration:

[S3100-SI] public-key peer xx import SSHkey gongyao // import the public key generated by putty from the file gongyao and name it xx [S3100-SI] SSH user h3c assign publickey xx // set the switch SSH public Key for user h3c is xx [S3100-SI] SSH user h3c service-type stelnet // set switch SSH user h3c login type to stelnet [S3100-SI] SSH user h3c authentication-type password-publickey/ /set the authentication type of the SSH user h3c of the switch to public key and password verification

Open putty, import the private key file generated by puttygen in auth under the SSH menu, and enter the IP address of the switch on the session tab, select SSH to log on to the vswitch 。

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.