From prasanna.mulgaonkar at gmail.com Mon Jul 24 19:16:06 2017 From: prasanna.mulgaonkar at gmail.com (Prasanna Mulgaonkar) Date: Mon, 24 Jul 2017 16:16:06 -0700 Subject: [execnet-dev] Help connecting through ssh jump host Message-ID: <6f3c8cda-74e1-5f4c-082b-b33fb883bdae@gmail.com> Hi folks, I had figured this out once, but cannot seem to recreate the process. I have one server (A) with a public and private IP, and another (B) with a private IP on the same private vlan. From my client (C), I want to open an execnet connection from C->A->B. With pure ssh and forwarding agents, I can have an agent running on C which knows my private ssh key, and I can do the following: ssh -A -t @A ssh @B and this opens a connection to B via A. I had made this work a couple of years ago on execnet with something like: makegateway ("ssh = @A -A ssh @B") But now I get an error: > >>> gw=execnet.makegateway("ssh= ec2-user at A -A ssh ec2-user at B" ) > bash: -c: line 0: syntax error near unexpected token `eval' > bash: -c: line 0: `python -c import sys;exec(eval(sys.stdin.readline()))' I don't see what I am doing wrong. I tried moving the -A to various places on the line, to no avail. Any help is much appreciated. --prasanna From opensource at ronnypfannschmidt.de Tue Jul 25 01:29:01 2017 From: opensource at ronnypfannschmidt.de (RonnyPfannschmidt) Date: Tue, 25 Jul 2017 07:29:01 +0200 Subject: [execnet-dev] Help connecting through ssh jump host In-Reply-To: <6f3c8cda-74e1-5f4c-082b-b33fb883bdae@gmail.com> References: <6f3c8cda-74e1-5f4c-082b-b33fb883bdae@gmail.com> Message-ID: <7c7a2119-132c-d329-2236-ec9791a5fa67@ronnypfannschmidt.de> Hi prasanna, execnet has grown support to do the following hop = makegateway("ssh=a//id=hop") gw = makegateway("ssh=b//via=hop") as for the first example you gave, that looks like it might have worked by accident, for clarification please bisect at which version it worked and broke so we can link it to a feature induction -- Ronny Am 25.07.2017 um 01:16 schrieb Prasanna Mulgaonkar: > Hi folks, I had figured this out once, but cannot seem to recreate the > process. > > I have one server (A) with a public and private IP, and another (B) > with a private IP on the same private vlan. > > From my client (C), I want to open an execnet connection from C->A->B. > > With pure ssh and forwarding agents, I can have an agent running on C > which knows my private ssh key, and I can do the following: > > ssh -A -t @A ssh @B > > and this opens a connection to B via A. > > I had made this work a couple of years ago on execnet with something > like: > > makegateway ("ssh = @A -A ssh @B") > > But now I get an error: > >> >>> gw=execnet.makegateway("ssh= ec2-user at A -A ssh ec2-user at B" ) >> bash: -c: line 0: syntax error near unexpected token `eval' >> bash: -c: line 0: `python -c import >> sys;exec(eval(sys.stdin.readline()))' > I don't see what I am doing wrong. I tried moving the -A to various > places on the line, to no avail. Any help is much appreciated. > > --prasanna > > _______________________________________________ > execnet-dev mailing list > execnet-dev at python.org > https://mail.python.org/mailman/listinfo/execnet-dev