On 15:42 23 Jan 2003, Keith Morse <[EMAIL PROTECTED]> wrote:
| On 21 Jan 2003, 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?
| 
| 
| Though some of the other replies seem to indicate it will work, I have 
| never been sucessfully at it either.  My limited research suggests that 
| ssh was not designed to support this arrangement.  My alternative would be 
| to ssh tunnel from hostA to hostB thru hostC.

If you have an ssh-agent and forward it you can probably go:

        ssh hostA scp /tmp/file hostB:/tmp/file

i.e. ssh to hostA and tell it to scp directly to hostB; the
forwarded connection will supply the right credentials.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Getting angry means allowing someone else's behavior to define one's
emotional state. It's more efficient to simply thrust a length of sharpened
piano wire through the guilty party's heart.
        - James Nicoll <[EMAIL PROTECTED]>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to