ssh je pige rien !!!

m@rco123 Membre non connecté
-
- Voir le profil du membre m@rco123
- Inscrit le : 15/05/2009
- Groupes :
Quand je change d'appareil par du ssh ( je passe du pc1 au pc2 par exemple ) j'ai ce message :
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c3:ff:6a:ec:10:f9:4f:91:a5:08:51:ac:db:29:cc:2c.
Please contact your system administrator.
Add correct host key in /home/yourusername/.ssh/known_hosts to get rid of this message.
Offending key in /home/yourusername/.ssh/known_hosts:3
RSA host key for staff.ssh.inf.ed.ac.uk has changed and you have requested strict checking.
Host key verification failed.
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c3:ff:6a:ec:10:f9:4f:91:a5:08:51:ac:db:29:cc:2c.
Please contact your system administrator.
Add correct host key in /home/yourusername/.ssh/known_hosts to get rid of this message.
Offending key in /home/yourusername/.ssh/known_hosts:3
RSA host key for staff.ssh.inf.ed.ac.uk has changed and you have requested strict checking.
Host key verification failed.
pour pouvoir accéder au second pc, j’écrase /home/yourusername/.ssh/known_hosts a chaque fois, mais
quand je repasse au pc1 ... rebelote !!!
Lenovo 110-17acl
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b

m@rco123 Membre non connecté
-
- Voir le profil du membre m@rco123
- Inscrit le : 15/05/2009
- Groupes :
Alors, ce que j'ai fait :
je renomme .ssh/known_hosts en .ssh/known_hosts.sav
je relance une connexion qui me créé un .ssh/known_hosts
j'ouvre .ssh/known_hosts.sav
je recopie dans .ssh/known_hosts la ligne de .ssh/known_hosts.sav
j'enregistre et ca marche ...
Lenovo 110-17acl
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b

magnux77 Membre non connecté
-
- Voir le profil du membre magnux77
- Inscrit le : 21/09/2009
- Groupes :
-
Membre d'Honneur
...depuis Mandrake 7
Membre de l'April - « promouvoir et défendre le Logiciel Libre»
Soutien Framasoft - « Changer le monde, un octet à la fois»
Config n°1 : cpu=AMD64x6 mem=16G SSD=64G HDD=1T OS=Mageia8-64 DE=Xfce, Config n°2 : Dell Latitude E6410 SSD=120G OS=Mageia8 DE=Xfce, Config n°3 : ThinkpadR40 SSD=32G OS=[Manjaro, Parabola, Mageia6] DE=Xfce, Config n°4 : EeePC901 SSD=20Gb, OS=[SliTaz5/Lxde, Mageia8/Xfce]
Membre de l'April - « promouvoir et défendre le Logiciel Libre»
Soutien Framasoft - « Changer le monde, un octet à la fois»
Config n°1 : cpu=AMD64x6 mem=16G SSD=64G HDD=1T OS=Mageia8-64 DE=Xfce, Config n°2 : Dell Latitude E6410 SSD=120G OS=Mageia8 DE=Xfce, Config n°3 : ThinkpadR40 SSD=32G OS=[Manjaro, Parabola, Mageia6] DE=Xfce, Config n°4 : EeePC901 SSD=20Gb, OS=[SliTaz5/Lxde, Mageia8/Xfce]

m@rco123 Membre non connecté
-
- Voir le profil du membre m@rco123
- Inscrit le : 15/05/2009
- Groupes :

Lenovo 110-17acl
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b

OPS56 Membre non connecté
-
- Voir le profil du membre OPS56
- Inscrit le : 18/11/2008
- Groupes :
Il y a pas mal d'info sur ssh ici : http://www.mageialinux-online.org/wiki/installer-et-configurer-un-serveur-openssh-ou-connexion-ssh
ici : http://www.linuxtricks.fr/wiki/ssh-installer-et-configurer-un-serveur-ssh
et ici : http://coagul.org/drupal/node/124/
A partir de ces tutos, j'ai réussi ma config ssh, et je peux me connecter via SSH à mes différentes machines.
@+

Dell G3-15 Intel Corei7 - 16Go Ram - Nvidia GTX1660 Ti (Tri boot Mageia 9- 64 bits / Linux Mint 20 Cinamon/ Windows 10)
Core i5 760 - 8Go Ram - Nvidia Gforce 450 - (Triple boot Mageia 9-64 bits - Plasma 5 / Mint 20 Cinamon / Open Suse Tumbleweed - Plasma 5)

pierremagiea Membre non connecté
-
- Voir le profil du membre pierremagiea
- Inscrit le : 30/08/2015
- Site internet
Le fichier known_hosts distant fichier contient les clés publiques des ordinateur que tu utilises en accès ssh. Si tu regardes dans ce fichier, tu verras une relation sur une ligne entre la clé publique de sshd et de l'ordinateur initiateur de la connexion. Donc si tu tombe systématiquement en conflit, c'est que les deux ordinateurs que tu utilise ont la même adresse (pb DHCP) ou le même nom.
Donc lorsque tu change d'ordinateur s'il il se trouve avec la même adresse il y aura collisions avec une clés privées d'origine différentes d'où le rappel "Man in the Middle".
Pierre Léonard
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie