Problem
Unable to make any changes to device from the Versa Director. SSH host key-mismatch error message is displayed.
Solution
Fetch SSH keys from device using CLI: request devices device HCN-1 ssh fetch-host-keys
Example:
Administrator@SDWAN-VOAE1> request devices device HCN-1 ssh fetch-host-keys
result unchanged
fingerprint {
algorithm ssh-rsa
value 47:f8:66:8c:07:59:81:89:dd:ce:6d:0d:f3:83:48:50
}
[ok][2023-06-15 21:11:25]
Administrator@SDWAN-VOAE1>
Push director public key into device:
Administrator@SDWAN-VOAE1> show devices list | match HCN-1
HCN-1 10.0.0.16 - netconf unlocked
[ok][2023-06-15 21:11:32]
Administrator@SDWAN-VOAE1>
[Administrator@SDWAN-VOAE1: ~] $ sudo /opt/versa/vnms/scripts/push_keys_to_device.sh 10.0.0.16 versa123
[sudo] password for Administrator:
Warning: Permanently added '10.0.0.16' (ED25519) to the list of known hosts.
0
Warning: Permanently added '10.0.0.16' (ED25519) to the list of known hosts.
0
[Administrator@SDWAN-VOAE1: ~] $
Reconnect the device:
[Administrator@SDWAN-VOAE1: ~] $ cli
Administrator@SDWAN-VOAE1> request devices device HCN-1 disconnect
[ok][2023-06-15 21:12:11]
Administrator@SDWAN-VOAE1> request devices device HCN-1 connect
result true
info (Administrator) Connected to HCN-1 - 10.0.0.16:2022
[ok][2023-06-15 21:12:14]
Administrator@SDWAN-VOAE1>
Administrator@SDWAN-VOAE1> request devices device HCN-1 netconf-notifications subscription voae_oam_subscr reconnect
[ok][2023-06-15 21:12:24]
Administrator@SDWAN-VOAE1>