Re: OT: X-application over ssh tunnel

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

 



On 12 March 2012 15:11, suvayu ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
> On Mon, Mar 12, 2012 at 11:31, suvayu ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
>> Anyway, now to your question. I think you should use the ProxyCommand
>> option for ssh. If A, B and C are fixed. You can put the folowing in
>> your ~/.ssh/config.
>>
>> # using B as proxy to C
>> Host    C
>>        User            useronC
>>        ProxyCommand    ssh -q B nc %h 22
>>
>> Host    B
>>        User            useronB
>>
>>
>> This will let you do the following:
>>
>> $ ssh -X B
>> $ ssh -X C
>
> I forgot to mention, this is assuming A is your workstation. If it is
> another remote node, you will have to extend with another proxy.
>
> GL
>
> --
> Suvayu

I don't understand how to do this. I've created .ssh/config as you
guided me. Now I have the following error:
nc: getaddrinfo: hostname nor servname provided, or not known
ssh_exchange_identification: Connection closed by remote host
Isn't it because host B can't connect to host C directly? They're in
different networks actually.
-- 
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux