Skip to content

/AWS1/CL_LSA=>DELETEKNOWNHOSTKEYS()

About DeleteKnownHostKeys

Deletes the known host key or certificate used by the Amazon Lightsail browser-based SSH or RDP clients to authenticate an instance. This operation enables the Lightsail browser-based SSH or RDP clients to connect to the instance after a host key mismatch.

Perform this operation only if you were expecting the host key or certificate mismatch or if you are familiar with the new host key or certificate on the instance. For more information, see Troubleshooting connection issues when using the Amazon Lightsail browser-based SSH or RDP client.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCENAME TYPE /AWS1/LSARESOURCENAME /AWS1/LSARESOURCENAME

The name of the instance for which you want to reset the host key or certificate.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSADELKNOWNHOSTKEYSRS /AWS1/CL_LSADELKNOWNHOSTKEYSRS