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