console密码修改
华为
user-interface console 0
authentication-mode password
set authentication password cipher xxxxxxxxx
华三
line aux 0
authentication-mode password
set auth pass simple xxx
思科
en
configure terminal
line console 0
password 123
login
忘记console口密码
华为
忘记console口密码,重置密码
1、断电重启
看到press ctrl+b or ctrl+e to enter bootload menu: 2,快速按下ctrl+b,输入密码admin@huawei.com
选择clear password for console user
yes
2、选择reboot
3、设备重启后初始密码为admin@huawei.com,首次进去开始重置密码
华三
重新启动h3c网络设备,当提示ctrl+b时,按下ctrl+b进入bootrom菜单
进入bootrom菜单要求输入密码,默认密码为空
当出现“extended boot menu”菜单后,输入数字 7 选择“skip current system configuration”选项,并按“y”进行确认操作
这里输入“0”直接进行重启设备
恢复出厂设置
华为
华为交换机初始化
在用户视图下,输入重置命令后重启交换机
reset saved-configuration
y
reboot
no
yes
设备重启完毕后,初始账密为admin/admin@huawei.com,首次登录需要修改密码。
华三
reset saved-configuration
reboot
思科
en
erase startup-config
y
reload
没密码的话按住mode键重启
设置ssh登录
华为
stelnet server enable
rsa locol-key-pair create
ssh user admin
ssh user admin authentication-type password
ssh user admin server-type stelnet
aaa
local-user admin password
local-user admin priviledge level 15
local-user admin admin server-type ssh
user-interface 0 4
authentication-mode aaa
protocol inbound ssh
华三
public-key local create rsa
ssh server enable
ssh user admin service-type stelnet authentication-type password
user-interface vty 0 15
authentication-mode scheme
protocol inbound ssh
local-user admin
password simple xxx
service-type ssh
authorization-attribute user-role network-admin
ssh user admin service-type stelnet authentication-type password
思科
line vty 0 3
transport input ssh
password xxx
login
exit
crypto key generate rsa
发表评论