server/instance and ssh keys

Mauricio Tavares raubvogel at gmail.com
Thu May 27 19:07:42 UTC 2021


Funny you mentioned [1]; that is what I have been trying to use and
could not find an option to get the name of the keypair.

On Thu, May 27, 2021 at 1:44 PM melanie witt <melwittt at gmail.com> wrote:
>
> On 5/27/21 07:44, Mauricio Tavares wrote:
> > Is there a way to query openstack about which ssh pubkey was used with
> > a given server?
>
> Yes, you show the details for the server (openstack server show) [1][2]
> to get the name of the keypair and then you show the details for the
> keypair (openstack keypair show) [3][4]. By default, you have to be
> admin to show the details of keypairs.
>
> HTH,
> -melanie
>
> [1]
> https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html#server-show
> [2]
> https://docs.openstack.org/api-ref/compute/?expanded=show-server-details-detail#show-server-details
> [3]
> https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/keypair.html#keypair-show
> [4]
> https://docs.openstack.org/api-ref/compute/?expanded=show-keypair-details-detail#show-keypair-details
>
>



More information about the openstack-discuss mailing list