<Huawei>reset saved-configuration This will delete the configuration in the flash memory.
The device configuratio ns will be erased to reconfigure.
Are you sure? (y/n)[n]:y The config file does not exist. #键入y确定删除配置文件
<Huawei>reboot Info: The system is comparing the configuration, please wait. Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n System will reboot! Continue ? [y/n]:y Info: system is rebooting ,please wait... #第一个交互键入n不保存配置 #第二个交互键入y确定重启
R1(config)#crypto key generate rsa The name for the keys will be: R1.r1.cisco.com Choose the size of the key modulus in the range of 360 to 4096 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus : 1024 % Generating 1024 bit RSA keys, keys will be non-exportable... [OK] (elapsed time was 2 seconds) #生成RSA加密的随机数
[AR1]rsa local-key-pair create The key name will be: Host % RSA keys defined for Host already exist. Confirm to replace them? (y/n)[n]:y The range of public key size is (512 ~ 2048). NOTES: If the key modulus is greater than 512, It will take a few minutes. Input the bits in the modulus[default = 512]:1024 Generating keys... ......................................................++++++ ............++++++ .........++++++++ ..++++++++
[AR2]stelnet 188.8.131.52 Please input the username:admin Trying 184.108.40.206 ... Press CTRL+K to abort Connected to 220.127.116.11 ... The server is not authenticated. Continue to access it? (y/n)[n]:y Sep 27 2019 17:56:07-08:00 AR2 %%01SSH/4/CONTINUE_KEYEXCHANGE(l):The server h ad not been authenticated in the process of exchanging keys. When deciding wheth er to continue, the user chose Y. [AR2] Save the server's public key? (y/n)[n]:y The server's public key will be saved with the name 18.104.22.168. Please wait...
Sep 27 2019 17:56:09-08:00 AR2 %%01SSH/4/SAVE_PUBLICKEY(l):When deciding whet her to save the server's public key 22.214.171.124, the user chose Y. [AR2] Enter password: <AR1>