Switching

last person joined: 3 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  root password won't work over ssh, from console works fine

    Posted 06-14-2019 17:18

    Running into this issue on a new stack of ex2300 switches. Root access works fine from console, but when I try to ssh across the network I get password errors.

    Did something change in newer versions of Junos?

    Deploying this stack the same way we have deployed dozens of them from our "golden" config.

     

    Software version 18.1 R3.3

     

    Appreciate some insight.



  • 2.  RE: root password won't work over ssh, from console works fine
    Best Answer

    Posted 06-14-2019 17:35
    Try 'set system services ssh root-login allow'
    Default root-login is deny in latest releases.


  • 3.  RE: root password won't work over ssh, from console works fine

     
    Posted 06-14-2019 20:52

    Look for root-login deny under ssh, that should mostly be it.



  • 4.  RE: root password won't work over ssh, from console works fine

    Posted 06-15-2019 04:33

    With newer versions of Junos the default is to deny root login via ssh.

    Previously to deny root login had to be configured explicitly.

    Now you need to configure explicitly to allow the root login instead.

     

    And note that the best practice for any unix based system is to deny direct root ssh login and have uses escalate to root as needed on the cli.  Which is what drove the change in default behavior.