Hi,
I want to force update ssh host key for all entire installed assets using an API.
But I didn't find anything about that.
kind regards
Federico
Hi,
I want to force update ssh host key for all entire installed assets using an API.
But I didn't find anything about that.
kind regards
Federico
Hi Federico,
If the Assets already exists in Safeguard:
- You can use the Safeguard PowerShell module to run the following commandlet:
Invoke-SafeguardAssetSshHostKeyDiscovery
For more information on using Safeguard Powershell module, please see the link here:
github.com/.../safeguard-ps
Thanks!
Hi Tawfiq,
Thanks, it works!!
For executing this procedure on entire assets?
I must use a script or there is a possibility to use a wildcard or something else.
Thanks!
Federico
Hi Federico,
Yes you would need to script it, possibly with a list of all Linux assets. It is not possible to use wildcard.
You can use the following commandlet to list all the assets in Safeguard then create a csv list of only the Linux systems which you need to discover the SSH host key against:
Get-SafeguardAsset -Fields Id,Name,platform.platformfamily
Thanks!
Hi Tawfiq,
This string saves me:
Invoke-SafeguardAssetSshHostKeyDiscovery -Asset <Object> -AcceptSshHostKey
Thanks!!!