Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Root access over SSH failed but working normally via console

    Posted 12-09-2020 12:49
    Edited by Sky Net 12-09-2020 13:02
    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
    Edited by Sky Net 12-10-2020 03:56
    Thanks! , This works for me