I've personally never successfully installed a user's public key on a AOS-S device, but found if the key is not accepted, you should make sure the key is of type RSA (which your key seems to be) and if it doesn't work try a 2048 bit key. The following command is at least accepted in my switch:
sw00(config)# ip ssh public-key manager username admin "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9p1kI14UO1JhxEEBoXfaOz6Ret2BYRBrw7+IeQ2pkKd9SeCZmUQwnv+/LCy8NnQNAIar4QhTvckyGpVnfuHh3xoUgpGZKJF4a/5Ge88+jmMYBo/jo0uyri0MLsra3Lnmj55QlZ93MsbpLZW7Zf6yrUZ+MJWccgkwwH/u16h2kpq7C1Q7HYClRJsHmebnr36L66B5GX/5WKoPI2IWKJuhTDMzs+jkk6t2oYWZd3in/kGUdn2RSRlks0mzEi9i1urtoZzGeojYMTX4YFjzeI2CgXDj8X0ZD9R8DoGlWs/J4TTz20lujqYiWcuFsHygNRPNMUOYnvkOQKs
NonNTg/84D hermantest@ubuntu-server"
I swapped the key and the username, but that may not be needed. Also I think there should be a name a the end of the key-line, so "ssh-rsa <key> <name/id>". Hope this works for you as well.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.
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: Mar 16, 2026 08:52 AM
From: Kadem Hamilton
Subject: Aruba 3810 public key install
update: They command took but says "invalid key" here is an example output. See below
ip ssh public-key manager "ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" username johndoe