Re: OT: X-application over ssh tunnel

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

 



On Mon, Mar 12, 2012 at 15:30, Hiisi <hiisi@xxxxxxxxxxxxxxxxx> wrote:
> 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.

I think you missed my caveat comment on my second email. I was assuming
A was your workstation, apparently that is not the case.

Lets go over this again one step at a time.

Assuming this is your use case:
A(workstation) -> remoteB -> remoteC

The solution I provided earlier should be setup on your workstation (or
A in this case).

If on the other hand your use case is:
workstation -> remoteA -> remoteB -> remoteC

Then it needs to be extended by one more step like this:

# using B as proxy to C
Host    C
        User            useronC
        ProxyCommand    ssh -q B nc %h 22

Host    B
        User            useronB
        ProxyCommand    ssh -q A nc %h 22

Host    A
        User            useronA

So now when you do,

$ ssh -X A

the "Host A" takes effect.

$ ssh -X B

"Host B" config takes effect but it also uses "Host A".

$ ssh -X C

"Host C" config takes effect but it uses both "Host B" and "Host A". I
would also recommend reading the relevant section in `man ssh_config` to
understand better how this is working. If anything is unclear feel free
to ask.

GL

-- 
Suvayu

Open source is the future. It sets us free.
-- 
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