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

Répondre à