hillstone 防火牆重置密碼

hillstone默認不提供重置密碼的方法,這個有點不方便。

下面的提供的方法是可行的,驗證通過:

https://max.book118.com/html/2018/0308/156398228.shtm

 

在出現Boot OS... 提示後,大概5秒鐘纔可以輸入字符,可以多按幾次回車,輸入entershell也不用急,大概會等待20秒左右纔會繼續的。

最後由於不能使用vi,用sed做文本替換好了,比如:

sed 's/old_password/hillstone/' config.x  >config.new

cp config.new config.x

然後reboot就可以了。

 

LMC0 init.........................done
DRAM: 1 GB
BOOTROM: 512 KB

Press ESC to stop autoboot:  0

Loading SG6000-M-3-5.5R2P7.14.bin
########################################

Load complete: 53977088 bytes loaded
Boot OS...

entershell



BusyBox v1.20.2 (2014-02-17 20:50:45 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ #
~ # cd flash
/wr_point/etc/mnt/mtdblock4 # cd config
/wr_point/etc/mnt/mtdblock4/config # ls
config.0           config0.bak        test.txt
config.conf        nosavedconfig.log  vsys_config.conf
/wr_point/etc/mnt/mtdblock4/config # cmp test.txt config.0
test.txt config.0 differ: char 9820, line 389
/wr_point/etc/mnt/mtdblock4/config # cmp config.0 config0.bak
/wr_point/etc/mnt/mtdblock4/config # cp test.txt config.0
/wr_point/etc/mnt/mtdblock4/config # cmp test.txt config.0
/wr_point/etc/mnt/mtdblock4/config # reboot
The system is going down NOW!onfig #
Requesting system reboot

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章