Re: How do I use ProxyCommand to connect to remote host using shared session enabled by ControMaster?

Asif Iqbal <[email protected]> Tue, 8 Feb 2011 09:53:23 -0500
Newsgroups gmane.network.openssh.general
Message-ID <[email protected]>
On Tue, Feb 8, 2011 at 9:51 AM, Asif Iqbal <[email protected]> wrote:
> On Tue, Feb 8, 2011 at 9:35 AM, Igor Bukanov <[email protected]> wrote:
>> On 8 February 2011 11:24, Igor Bukanov <[email protected]> wrote:
>>> On 8 February 2011 04:20, Asif Iqbal <[email protected]> wrote:
>>>> Is it possible to make it work as default for all hosts except the jum=
phost?
>>>>
>>>> I tried to replace the remotehost with `*' and then tried to fresh
>>>> start, like below
>>>
>>> I suppose you cannot do that since host * provides defaults for all
>>> hosts irrespective of the order. You can try to add an empty
>>> ProxyCommand to jumphost.
>>
>> I was wrong here, to disable the proxy command for jumphost set
>> ProxyCommand to none , not an empty string , as stated in ssh_config
>
> actually I understood that is what you meant and it is working perfect no=
w.
>
> here is my latest setup
>
> $ cat ~/.ssh/config
> host jumphost
> =A0hostname jumphost.example.net
> =A0ForwardX11 yes
> =A0ControlMaster auto
> =A0ControlPath ~/.ssh/%r@%h:%p
> =A0ProxyCommand none
> host *
> =A0hostname remotehost.example.net

sorry no hostname entry there

> =A0ProxyCommand ssh -T -a jumphost nc %h %p
>
> Thanks a lot for your help!
>
>> manual page, http://www.openbsd.org/cgi-bin/man.cgi?query=3Dssh_config&s=
ektion=3D5
>> .
>>
>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>



--=20
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?