Bonjour tout le monde,
Je veux accéder à mon switch via SSH avec un script python que j'ai testé avec d'autre machine mais je reçois cette erreur :
ssh.BadAuthenticationType: Bad authentication type (allowed_types=['publickey'])
alors j'essaie d'accèder à mon switch avec mon terminal linux "ssh
admin@10.90.90.90" mais je reçois l'erreur suivante:
[COLOR="Blue"]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bf:ff:c9:58:03:49:ea:a7:34:e8:1f:ad:3c:ab:50:30.
Please contact your system administrator.
Add correct host key in /home/manou/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/manou/.ssh/known_hosts:3
remove with: ssh-keygen -f "/home/manou/.ssh/known_hosts" -R 10.90.90.90
RSA host key for 10.90.90.90 has changed and you have requested strict checking.
Host key verification failed.
Je tape chaque fois la commande
ssh-keygen -f "/home/manou/.ssh/known_hosts" -R 10.90.90.90
et je reçois :
The authenticity of host '10.90.90.90 (10.90.90.90)' can't be established.
RSA key fingerprint is bf:ff:c9:58:03:49:ea:a7:34:e8:1f:ad:3c:ab:50:30.
Are you sure you want to continue connecting (yes/no)?
"
donc je tappe "yes" et ça marche pour un moment puis je reçois la même erreur !!
à ce que j'ai compris que la clé publique du switch change automatiquement de temps en temps, ce qui rend l'accès au switch par un script python impossible !