如何恢复Juniper防火墙管理员密码,手把手教你

本文介绍如何通过特定步骤重置 Juniper SRX 防火墙的 root 用户密码,包括使用 USB 串口线连接、SecureCRT 软件设置、U-Boot 模式下操作等详细过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

说明:恢复密码不会删除现有配置。

准备:USB串口线连接PC和防火墙管理口,打开secureCRT-快速连接-serial-选择正确的COM口-速率改为9600-连接,防火墙加电。

注:如果恢复过程中,要求输入root密码,则该方法可能被禁用(set system ports console insecure

U-Boot 1.1.6-JNPR-2.7 (Build time: Nov 26 2013 - 19:04:49)

Initializing memory this may take some time...

注:此处省略若干提示信息

直到出现下面的红色信息就要睁大双眼盯紧屏幕

Loading /boot/defaults/loader.conf

/kernel data=0xb0496c+0x1344a4 syms=[0x4+0x8a9e0+0x4+0xc8f47]

Hit [Enter] to boot immediately, or space bar for command prompt.

注:此时按空格键

Type '?' for a list of commands, 'help' for more detailed help.

loader> boot -s   注:输入蓝色部分的命令,并回车

Kernel entry at 0x801000e0 ...

init regular console

注:此处省略若干提示信息

直到出现下面的红色信息就要睁大双眼盯紧屏幕

Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery     注:输入蓝色部分的命令,并回车

Performing system setup ...

Checking integrity of BSD labels:

  s1: Passed

  s2: Passed

  s3: Passed

  s4: Passed

注:此处省略若干提示信息

直到出现下面的红色信息就要睁大双眼盯紧屏幕

NOTE: Once in the CLI, you will need to enter configuration mode using

NOTE: the 'configure' command to make any required changes. For example,

NOTE: to reset the root password, type:

NOTE:    configure

NOTE:    set system root-authentication plain-text-password

NOTE:    (enter the new password when asked)

NOTE:    commit

NOTE:    exit

NOTE:    exit

NOTE: When you exit the CLI, you will be asked if you want to reboot

NOTE: the system

Starting CLI ...

root@SRX100> configure    注:输入蓝色部分的命令,并回车

Entering configuration mode

[edit]

root@SRX100# set system root-authentication plain-text-password

New password:

Retype new password:

[edit]

root@SRX100# commit  

commit complete

[edit]

root@SRX100# exit

Exiting configuration mode

root@SRX100> exit

Reboot the system? [y/n]y

正常启动后,就可以用新密码登录root用户了

参考文档:SRX password reset/recovery – RtoDto.net

https://www.juniper.net/documentation/us/en/software/junos/user-access/topics/topic-map/recovering-root-password.html

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

雕技小虫

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值