Question

Problème de Broker : broker-stat unknown command error host key verification failed

  • 18 September 2023
  • 2 replies
  • 242 views

Badge +2

Bonjour, j’ai le même problème :  UNKNOWN: Command error: Host key verification failed.

Seulement j’ai suivis les consigne indiquer sur cette page pour l’échange de clé ssh :https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-monitoring-centreon-central/#ssh-key-exchange

J’ai également changer l’extra option : --verbose --ssh-username=centreon.

 

Mais mon problème reste le même.

 

Quelqu’un peut m’aider ?

Merci d’avance.

su - centreon-engine
ssh-keygen -t ed25519 -a 100
ssh-copy-id -i ~/.ssh/id_ed25519.pub centreon@localhost

 

j’utilise actuellement un poller qui est lui même sur le même serveur que mon application WEB Centreon

(je n’ai qu’un serveur pour toute ma supervision et mon application web et en générale pour tout si jamais j’ai oublier quelque chose)

et ma ligne EXTRA OPTION a comme valeur : --verbose --ssh-username=centreon

car si j’utilise les valeurs : --verbose --remote --ssh-option='-l=centreon'

J’ai une erreur qui ressemble a cela : Unknown option: remote at /usr/lib/centreon/plugins//centreon_centreon_central.pl line 2248.

[ cat -n /usr/lib/centreon/plugins//centreon_centreon_central.pl | grep 2248
   = 2248                    warn "Unknown option: $option" if ($warn_message == 1); ]

 

je n’arrive pas a cerner ce qui ne fonctionne pas, sachant que j’ai suivis la procédure a la lettre :(

Encore merci a vous.


2 replies

Badge +6

J’avais cette erreur: 

UNKNOWN: Command error: Host key verification failed

En cherchant je suis tombé sur ton topic , j’ai donc suivi la doc idoine .

Et y a rien qui fonctionne: 

 ssh-keygen -t ed25519 -a 100
Generating public/private ed25519 key pair.
Enter file in which to save the key (/var/lib/centreon-engine/.ssh/id_ed25519): ~/.ssh/id_ed25519.pub
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "~/.ssh/id_ed25519.pub" failed: No such file or directory
[centreon-engine@centreon ~]$ ssh-keygen -t ed25519 -a 100
Generating public/private ed25519 key pair.
Enter file in which to save the key (/var/lib/centreon-engine/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/lib/centreon-engine/.ssh/id_ed25519.
Your public key has been saved in /var/lib/centreon-engine/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:gt9P+wcakYeJ9XxCI7LWz+jzXYkhXJUYApFyIM4vfCA centreon-engine@centreon
The key's randomart image is:
+--[ED25519 256]--+
| . ..o+. .o..|
| o ...oo +... |
| E + o* O o |
| o.o + B * . |
| .o.+S O + |
| .oo o = o .|
| . ...o o ..|
| o+. ... |
| o+o.. |
+----[SHA256]-----+
[centreon-engine@centreon ~]$ ssh-copy-id -i ~/.ssh/id_25519.pub centreon@10.250.1.7

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/var/lib/centreon-engine/.ssh/id_25519.pub': No such file or directory

 

Badge +6

Finally in /var/lib/centreon-engine

done

[centreon-engine@centreon ~]$ ssh-copy-id -i .ssh/id_ed25519.pub centreon@localhost
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_ed25519.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
centreon@localhost's password:

It doesn’t accept the password..

centreon@localhost's password:
Permission denied, please try again.
centreon@localhost's password:

I assume that change and keed safetly the password in keepass; so I don’t understand.

Reply