Wired Intelligent Edge

 View Only
  • 1.  How to access enable level on a Procurve switch without hardcoding a password?

    Posted Feb 16, 2017 08:03 PM

    We have a large number of ProCurve 2920 switches, and would like to automate backing up their config files to a TFTP or SFTP server. The switches are set up for ssh-only access, no telnet.

    I first thought I could use PuTTY, psftp, and the Pageant ssh key management program to do this, but I have run into a problem: Manager (enable) level on these switches cannot be accessed using a public key. We really don't want to have to configure RADIUS just for these switches, and I recoil at the idea of hard-coding a cleartext password into a script.

    Does anyone have an alternative? We are a Windows shop, so RANCID is not really an option.


    #enable
    #Script
    #Manager
    #ssh


  • 2.  RE: How to access enable level on a Procurve switch without hardcoding a password?

    Posted Feb 17, 2017 11:08 AM

    Hi, 

    You try the below command and let me know if it helps.

    HPE(config)#aaa authentication login privilege-mode



  • 3.  RE: How to access enable level on a Procurve switch without hardcoding a password?

    Posted Feb 20, 2017 07:18 PM

    Windows now gives you a free Radius server, so it's actually quite easy to setup, and definitely makes your security look a lot more professional.



  • 4.  RE: How to access enable level on a Procurve switch without hardcoding a password?

    Posted Feb 23, 2017 10:11 PM

    You should be able to authenticate via public key.  I assume you've copied the key to the switch?  You'll also need to configure SSH for public key auth:

    (config)# aaa authentication ssh enable public-key none
    (config)# aaa authentication ssh login public-key none

    The switch log should also tell you how the session was authenticated:

    I 02/23/17 14:30:09 03344 ssh: User mpatmon : SSH session established with
                public-key authentication