先进入系统
进入aaa模式
aaa
[Mix-li-aaa]local-user admin password cipher rc!@123456
Info: Add a new user.
[Mix-li-aaa]local-user admin privilege level 15
[Mix-li-aaa]local-user admin service-type ssh
[Mix-li-aaa]q
[Mix-li]ssh user admin authentication-type password
Authentication type setted, and will be in effect next time
[Mix-li]stelnet server enable
Info: Succeeded in starting the STELNET server.
[Mix-li]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]:
Generating keys…
[Mix-li]user-interface vty 0 4
[Mix-li-ui-vty0-4]authentication-mode aaa
[Mix-li-ui-vty0-4]protocol inbound ssh
版权属于:
ctkj
评论 (0)