j ai trouvé avec l option HostKeyAlias ssh -p 1234 -o HostKeyAlias=machinedest localhost
Merci Vincent Louviaux Selon Vincent <[EMAIL PROTECTED]>: > Bonjour, > > > J'essaye d'automatiser des scp (transfert de fichier) vers des machines où je > n > ai pas accès directement mais via un jump host. > > pour cela je créé le Tunnel ssh : > > ssh -N -L 1234:machinedest:22 jumhost > > Puis > ssh -p 1234 localhost > Ou scp > > Mais le prob c'est que le fichier .ssh/known_hosts retient le "host > identification" de la précédente connection => > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ > @ 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 > 88:c1:d4:96:c5:25:ab: > Please contact your system administrator. > Add correct host key in /home/vincent/.ssh/known_hosts to get rid of this > message. > Offending key in /home/vincent/.ssh/known_hosts:29 > RSA host key for localhost has changed and you have requested strict > checking. > Host key verification failed. > > > > comment faire pour éviter ce problème car tout les hosts vont s'appeller > localhost .. > > Y a t il moyen de contourner le contrôle du host ? > > Merci > > > _______________________________________________________ > Linux Mailing List - http://www.unixtech.be > Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux > Archives: http://www.mail-archive.com/[EMAIL PROTECTED] > IRC: chat.unixtech.be:6667 - #unixtech > _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech