Thanks for sharing. Note that this seems to apply for AOS-CX specific.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
------------------------------
Original Message:
Sent: Jul 31, 2023 02:44 AM
From: aseques
Subject: Enabling ssh with public / private key
I am trying to replicate a setup I have with cisco where I login via ssh (with a private/public authentication) and then I do a "show run", so I get a fresh backup I can store and diff without having to login.
I am documenting it here in case anyone finds it useful (haven't find anything around), on the manual says that the command to upload the key is
user <username> authorized-key PUBKEY
The user needs to be created AND to have a password defined.
About the PUBKEY definition, after a lot of trial it seems that the switches are happy with the .pub format that you get with linux ssh-keygen
Something similar to this (with your own keys) should work
user test authorized-key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBd3X/oj1tYnbgLSJLJoMmX96q+tl6o8f6e3y2qx1 user@test
A happy surprise is that it allows to use ed25519 signatures.
With this we will be able to login