Re: OT: X-application over ssh tunnel



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

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


Relevant Pages

  • Re: Multi Hopping by sshserver proxy with different keys
    ... you could use socat to forward ssh connections from one host to another ... don't want to do a command like "ssh bastion ssh target" since I'd like ... You could pass the passphrase as a parm from the Windows host if your ...     User bastionuser ...
    (SSH)
  • Re: putty & proxy settings
    ... >I am setting up putty 0.54 to use a proxy server so when I connect up to my ... >host it will display the proxy ip as the last connection and not my real ... All of the SSH traffic is encrypted between your client and SSH server, ...
    (comp.security.ssh)
  • Re: OT: X-application over ssh tunnel
    ... Host A can connect to host B but not to host C directly. ... ssh -R 10002;localhost:22 user@B ... Host    C ... Registered Linux User #487982. ...
    (Fedora)
  • Re: SIGALRM problem
    ... It is possible that the other host is down, ... command hangs, so I want my script to time out if this happens: ...    signal ... I would expect the above to raise IOError if the ssh doesn't return ...
    (comp.lang.python)
  • Re: OT: X-application over ssh tunnel
    ... option for ssh. ... Host    C ... you will have to extend with another proxy. ...
    (Fedora)