Re: Stupid question maybe.
On Thu, Jan 31, 2002 at 02:07:23AM +0200, Eetu Rantanen wrote: > On Wed, 30 Jan 2002, Nicolas Bougues wrote: > > > rsync --rsh="ssh ssh" :/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. > That's what I tried. It worked well for the first hop, but not the next one. But maybe I got something wrong. -- Nicolas BOUGUES Axialys Interactive
Re: Stupid question maybe.
On Thu, Jan 31, 2002 at 02:07:23AM +0200, Eetu Rantanen wrote: > On Wed, 30 Jan 2002, Nicolas Bougues wrote: > > > rsync --rsh="ssh ssh" :/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. > That's what I tried. It worked well for the first hop, but not the next one. But maybe I got something wrong. -- Nicolas BOUGUES Axialys Interactive -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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 "rsync --rsh=ssh :/some/dir :/some/dir" > > - or try to forward the ssh connection : > > rsync --rsh="ssh ssh" :/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. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question maybe.
On Wed, Jan 30, 2002 at 05:24:48PM +0100, Nicolas Bouthors wrote: > Hi, > > Here is my trouble : I'm working on machine A and I want to 'rsync' some > files to machine C. Machine C is on another (private) net, > unreachable from machine A. > > Machine B is in the between and is only reachable by ssh. > > 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 "rsync --rsh=ssh :/some/dir :/some/dir" - or try to forward the ssh connection : rsync --rsh="ssh ssh" :/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). -- Nicolas BOUGUES Axialys Interactive -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question maybe.
Jason Lim said : >> Do you WANT C to be invisible from outside, for security or something? Yes you got the point. >> Is there a reason you want to go through B to get to C? That's the only path -- [EMAIL PROTECTED] -- http://nicolas.bouthors.org/ -- +33 6 2071 6234 Administateur Systèmes et Réseaux --GHS--38, Rue du Texel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question maybe.
> C is therefore "invisible" from anywhere, except for B. Do you WANT C to be invisible from outside, for security or something? Is there a reason you want to go through B to get to C? > Here is how it looks : > > A--GW+NAT---Internet---B-C > 192.168.x.y ^^ 10.0.0.x > Public IP #1 Public IP #2 > > > > -- > [EMAIL PROTECTED] -- http://nicolas.bouthors.org/ -- +33 6 2071 6234 > Administateur Systèmes et Réseaux --GHS--38, Rue du Texel > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question maybe.
Jason Lim said : >> Perhaps use B to bridge the two ethernet segments so that they can >> communicate, so you can connection from A to C "directly"? Mmmm no. I guess I have to describe more the situation : A is here, and is behind a firewall/NATing gateway. I work on it. B is hosted $FAR_AWAY and has a public IP. C is hosted in the same $FAR_AWAY location but is behind B, acting as firewall for it. C is therefore "invisible" from anywhere, except for B. Here is how it looks : A--GW+NAT---Internet---B-C 192.168.x.y ^^ 10.0.0.x Public IP #1 Public IP #2 -- [EMAIL PROTECTED] -- http://nicolas.bouthors.org/ -- +33 6 2071 6234 Administateur Systèmes et Réseaux --GHS--38, Rue du Texel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question maybe.
> Hi, > > Here is my trouble : I'm working on machine A and I want to 'rsync' some > files to machine C. Machine C is on another (private) net, > unreachable from machine A. > > Machine B is in the between and is only reachable by ssh. > > 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 ? > Perhaps use B to bridge the two ethernet segments so that they can communicate, so you can connection from A to C "directly"? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Stupid question maybe.
Hi, Here is my trouble : I'm working on machine A and I want to 'rsync' some files to machine C. Machine C is on another (private) net, unreachable from machine A. Machine B is in the between and is only reachable by ssh. 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 ? Thanks, Nico -- SIGFUN: .sig too funny -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]