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

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

 



On Tue, Feb 8, 2011 at 9:51 AM, Asif Iqbal <vadud3@xxxxxxxxx> wrote:
> On Tue, Feb 8, 2011 at 9:35 AM, Igor Bukanov <igor@xxxxxxxx> wrote:
>> On 8 February 2011 11:24, Igor Bukanov <igor@xxxxxxxx> wrote:
>>> On 8 February 2011 04:20, Asif Iqbal <vadud3@xxxxxxxxx> wrote:
>>>> Is it possible to make it work as default for all hosts except the jumphost?
>>>>
>>>> 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 now.
>
> here is my latest setup
>
> $ cat ~/.ssh/config
> host jumphost
>  hostname jumphost.example.net
>  ForwardX11 yes
>  ControlMaster auto
>  ControlPath ~/.ssh/%r@%h:%p
>  ProxyCommand none
> host *
>  hostname remotehost.example.net

sorry no hostname entry there

>  ProxyCommand ssh -T -a jumphost nc %h %p
>
> Thanks a lot for your help!
>
>> manual page, http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&sektion=5
>> .
>>
>
>
>
> --
> 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?
>



-- 
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?



[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux