Junos OS

Expand all | Collapse all

Root access over SSH failed but working normally via console

Jump to Best Answer
  • 1.  Root access over SSH failed but working normally via console

    Posted 12-09-2020 12:49
    Hello Experts,

    MX204 (Junos 18.R1): Using the same root password access granted using the console but can't grant the same access over SSH and the below logs found

    Dec 7 16:50:47 eqrt-MX204 sshd: SSHD_LOGIN_FAILED: Login failed for user 'root' from host '10.147.77.45'
    Dec 7 16:50:54 eqrt-MX204 sshd[12377]: Connection closed by authenticating user root 10.147.77.45 port 50741
    Dec 7 16:50:54 eqrt-MX204 sshd[12376]: Connection closed by authenticating user root 10.147.77.45 port 50741 [preauth]


    Any workarounds ?

    Thanks


  • 2.  RE: Root access over SSH failed but working normally via console
    Best Answer

     
    Posted 12-09-2020 13:05
    Hello,

    You have to edit the default Control user access through SSH.

    set system services ssh root-login allow

    this is described in the below link 
    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/root-login-edit-system.html

    Regards,


  • 3.  RE: Root access over SSH failed but working normally via console

    Posted 12-10-2020 03:56
    Thanks! , This works for me