Khôi phục mật khẩu Root trên thiết bị Juniper

Discussion in 'Firewall Juniper' started by minhhaipro, Oct 28, 2021.

  1. minhhaipro

    minhhaipro Member

    Bài viết này sẽ hướng dẫn các bạn khôi phục mật khẩu Root trên các thiết bị Juniper chạy Junos OS. Lưu ý khi khôi phục mật khẩu Root trên thiết bị Juniper SRX sẽ mất tất cả cấu hình và log.

    - Kết nối tới thiết bị Juniper bằng cổng console, sau đó khởi động lại thiết bị .

    - Nhấn liên tục phím SPACE khi thiết bị bắt đầu khởi động, bạn sẽ vào bootstrap loader command prompt.

    - Nhập boot –s để vào single-user mode

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

    Type '?' for a list of commands, 'help' for more detailed help.
    OK boot -s


    [​IMG]

    - Sau khi booting sẽ xuất hiện kết quả sau.

    Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:

    - Nhập lệnh recovery để bắt đầu root password recovery.

    Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery

    [​IMG]

    - Sau khi nhập lệnh recovery, nó sẽ bắt đầu thực hiện khởi tạo các dịch vụ quản lý và sẽ khởi động CLI.

    Starting CLI ...
    root>


    - Đi vào configuration mode bằng lệnh configure.

    root> configure
    Entering configuration mode

    [edit]
    root#


    [​IMG]

    - Cấu hình mật khẩu mới cho root và commit.

    root# set system root-authentication plain-text-password
    New password:
    Retype new password:

    [edit]
    root# commit
    commit complete


    [​IMG]

    - Sử dụng lệnh exit thoát khỏi configuration mode, exit một lần nữa thiết bị sẽ yêu cầu bạn khởi động lại chọn y để khởi động lại thiết bị.

    [edit]
    root# exit
    Exiting configuration mode

    root> exit

    Reboot the system? [y/n] y


    [​IMG]

    - Sau khi thiết bị khởi động lại, login bằng mật khẩu mới.

    [​IMG]

    !!! Cảm ơn các bạn đã theo dõi bài viết !!!
     

Share This Page