1、修改 Console 密码
sys
user-interface aux 0
authentication-mode password
set authentication password simple H3cAyey@0504
2、配置 SSH 登陆
[ZhouLou_2#]public-key local create rsa
[ZhouLou_2#]public-key local create dsa
[ZhouLou_2#]ssh server enable
[ZhouLou_2#]user-interface vty 0 63
[ZhouLou_2#-line-vty0-63]authentication-mode scheme
[ZhouLou_2#-line-vty0-63]protocol inbound ssh
[ZhouLou_2#-line-vty0-63]quit
[ZhouLou_2#]local-user admin
[ZhouLou_2#-luser-manage-admin]password simple H3ckfzx@0817
[ZhouLou_2#-luser-manage-admin]service-type ssh
[ZhouLou_2#-luser-manage-admin]authorization-attribute user-role network-admin
[ZhouLou_2#-luser-manage-admin]quit
命令总结:
1、修改 Console 密码:
user-interface aux 0
authentication-mode password
set authentication password simple H3cAyey@0504
quit
2、创建用户名 = admin 、密码 = Admin@123 、并配置 SSH 登陆:
public-key local create rsa
public-key local create dsa
ssh server enable
user-interface vty 0 63
authentication-mode scheme
protocol inbound ssh
quit
local-user admin
password simple Admin@123
service-type ssh
authorization-attribute user-role network-admin
quit
quit
save