[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stupid question maybe.



On Wed, 30 Jan 2002, Nicolas Bougues wrote:

> > So if I want to rsync from A to B, rsync -e ssh /some/dir B:/some/dir is
> > enough, but what should I do to go straight fro A to C ?
> >
>
> I see two possible solutions :
>
> - launch rsync on machine B. From machine A, this would look like :
>
> ssh <machine B> "rsync --rsh=ssh <machine C>:/some/dir <machine A>:/some/dir"
>
> - or try to forward the ssh connection :
>
> rsync --rsh="ssh <machine B> ssh" <machine C>:/some/dir /some/local/dir
>
> I tested this second solution, and I can't see how to make ssh ask the
> second password (for machine C). It complains it has no controlling
> tty. It works well if you setup your ssh to connect without passwords
> from B to C, however (by trusting keys).

Try it with ssh -t,
  -t          Tty; allocate a tty even if command is given.

It'll then prompt for the password.





Reply to: