---
title: "Gather SSH host keys for target hosts failure"
description: "Gathering SSH host keys for target hosts may fail due to NAT or ssh-keyscan changes. Modifying the opsview-deploy file as root allows installation or upgrade to proceed."
url: "https://docs.itrsgroup.com/docs/faq/opsview/13538330380445-opsview-gather-ssh-host-keys-for-target-hosts-failure/index.html"
---
## Symptoms

- This applies to Red Hat 8, Oracle Linux 8, and Ubuntu 20.04
- Gathering SSH host keys for target hosts might fail when it cannot gather keys from a target host (due to NAT or other issues).

### Cause

*Known Issue OP-61084*

Due to recent changes made in `ssh-keyscan` command, the ansible task, 'Gather SSH host keys for target hosts' might fail when it cannot gather keys from a target host (due to NAT or other issues).

### Solution

To be able to progress with the installation/upgrade we need to modify `opsview-deploy` file by running the below command as `root`:

```
sed -i '/ register: _ssh_keys_host_keys/i \ \ ignore_errors: true' /opt/opsview/deploy/lib/roles/ssh_keys/tasks/main.yml
```


