You need to enable agent forwarding: http://www-106.ibm.com/developerworks/linux/library/l-keyc3/
Justin On Tue, 2003-01-21 at 12:00, Ed Wilts wrote: > On Tue, Jan 21, 2003 at 08:33:03AM -0500, Jeff Bearer wrote: > > I want to copy a file from host A to host B while on host C. Host C uses > > public key auth to login to A and B. > > > > But when I try this: > > hostC #> scp hostA:/tmp/file hostB:/tmp/file > > > > I get this: > > Host key verification failed. > > lost connection > > > > But If I do this: > > hostC #> scp hostA:/tmp/file ./; scp ./file hostB:/tmp/file > > > > It works. Can somebody clue me in to what's the problem? > > The other poster pointed you in the right direction - scp used in the > method you suggest actually opens up a connection from A to B. I can > see why you might want to to save bandwidth, but if A can't directly > talk to B (firewalled, for example), then there's no way to do this > without doing the intermediate copy that you tried. > > We sniffed the packets here to see what it does to prove that A really > does try to talk to B. > > .../Ed > -- > Ed Wilts, Mounds View, MN, USA > mailto:[EMAIL PROTECTED] > Member #1, Red Hat Community Ambassador Program > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8hO+VBOGVGcv6DNwRAnATAJ41CA57cwrv71e3qhTzVFv2Pz6j0QCgonV7 TPZfyZ+m7eZX3oHeZ3YhT9E= =fFbZ -----END PGP SIGNATURE-----
signature.asc
Description: This is a digitally signed message part