Ta solution est bien plus simple que la mienne ;-)
N�anmoins le langage 'expect' vaut la peine d'�tre connu, car c'est la
parade qui marche (par ex. si tu n'avais pas trouv� une option pour te
tirer d'affaire directement)
Alain
----------------
On Wed, 2004-07-14 at 12:19, Vincent wrote:
> 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
--
------------------------------------------------------------
Dr Alain Empain <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Bioinformatics, Molecular Genetics,
Fac. Med. Vet., University of Li�ge, Belgium
Bd de Colonster, B43 B-4000 Li�ge (Sart-Tilman)
WORK: +32 4 366 3821 FAX: +32 4 366 4122
HOME: rue des Martyrs,7 B- 4550 Nandrin
+32 85 51 23 41 GSM: +32 497 70 17 64
_______________________________________________________
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