Clear-RedgateMonitorSshHostKey
Published 12 November 2026
Clears the SSH host key that Redgate Monitor trusts for a Linux machine.
Syntax
Clear-RedgateMonitorSshHostKey [-LinuxMachine] <LinuxMachine> [<CommonParameters>]
Description
The Clear-RedgateMonitorSshHostKey cmdlet clears the SSH host key that Redgate Monitor trusts for a Linux machine. It also clears the key that Redgate Monitor last rejected for the machine. On the next connection, Redgate Monitor trusts the key that the machine presents, unless strict SSH host key checking is on. With strict checking, Redgate Monitor rejects the key until you trust a key.
To trust a specific key instead, use Set-RedgateMonitorSshHostKey.
Connect-RedgateMonitor must be called before this cmdlet.
Parameters
-LinuxMachine
<LinuxMachine>
The Linux machine to clear the SSH host key for. For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-LinuxMachine.
| Aliases | None |
| Required? | true |
| Position? | 1 |
| Default Value | None |
| Accept Pipeline Input | True (ByValue) |
| Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable, and -ProgressAction. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
[LinuxMachine] For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-LinuxMachine.
Examples
-------------------------- EXAMPLE 1 --------------------------
Get-RedgateMonitorMonitoredObject -Type Machine -Name 'linux-box' | Clear-RedgateMonitorSshHostKey
This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved