Re: scp?
From: Richard E. Silverman (slade@shore.net)
Date: 12/26/02
- Next message: Richard E. Silverman: "Re: Can't Auto Authenticate. Please look at my -v"
- Previous message: Richard E. Silverman: "Re: How do you know if a tunnel is working?"
- In reply to: Dimitri Maziuk: "Re: scp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: slade@shore.net (Richard E. Silverman) Date: 25 Dec 2002 20:21:38 -0500
>>>>> "DM" == Dimitri Maziuk <dima@127.0.0.1> writes:
DM> Both kinds. With password auth, it asks for the password for 1st
DM> connection and fails on the 2nd. With key-based auth it fails on
DM> the second connection, even though it's the same key for both
DM> systems.
To be expected; see below.
DM> ...However, perhaps you need to turn on agent forwarding to
>> the second ssh invocation has access to your keys.
DM> But only when copying between two remote machines?
Yes, of course. Say the host you are running the initial scp is A, and
you're doing scp B:foo C:bar. Your command has the effect of running a
second copy of ssh on B. It needs authentication information to login to
C; how will it get it? Password authentication will not work at all,
since scp on A invokes ssh with -n and provides no pty for the exec
channel, so ssh on B can't prompt you for it. Public-key will be OK, but
you have to use agent forwarding; again, even if an appropriate key in on
B, it can't prompt you for a passphrase.
DM> Anyway, I tried it with non-protected key, no dice.
A plaintext key on A will be irrelevant, since it's ssh on B that needs
it.
-- Richard Silverman slade@shore.net
- Next message: Richard E. Silverman: "Re: Can't Auto Authenticate. Please look at my -v"
- Previous message: Richard E. Silverman: "Re: How do you know if a tunnel is working?"
- In reply to: Dimitri Maziuk: "Re: scp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|