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 。