• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ssh not working behind proxy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh not working behind proxy?


  • Subject: Re: ssh not working behind proxy?
  • From: Jonas Maebe <email@hidden>
  • Date: Wed, 9 Sep 2009 20:04:40 +0200


On 09 Sep 2009, at 19:53, Paula R T Coelho wrote:

at work they use a http proxy. i work simultaneously with 2 machines, a mac
mini running leopard and a linux machine running ubuntu. i configured the
proxy at both systems (or at least i think so), but the problem is that i
can ssh a external host via linux, but not from my mac.

On Mac OS X, setting an http proxy means just that: this proxy is used for http connections (by Carbon/Cocoa apps; command line apps, except for equivalents of GUI apps such as softwareupdate, nor X11 apps won't know anything about it).


It is also possible to use http proxies to tunnel arbitrary protocols, but Mac OS X does not do this.

You can configure it yourself for ssh though. From "man 5 ssh_config":

***
ProxyCommand
Specifies the command to use to connect to the server. The com-
mand string extends to the end of the line, and is executed with
[snip]


This directive is useful in conjunction with nc(1) and its proxy
support. For example, the following directive would connect via
an HTTP proxy at 192.0.2.0:


ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
***


So create a file $HOME/.ssh/config and add the above line to it (replace the ip address/port with those of your proxy server).

do i have to configure proxy for the X11 independently?


No, because X11 should be forwarded over your ssh connections. Just make sure that you use the "-X" and "-Y" parameters.


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
  • Follow-Ups:
    • Re: ssh not working behind proxy?
      • From: Paula R T Coelho <email@hidden>
References: 
 >ssh not working behind proxy? (From: Paula R T Coelho <email@hidden>)

  • Prev by Date: ssh not working behind proxy?
  • Next by Date: Re: ssh not working behind proxy?
  • Previous by thread: ssh not working behind proxy?
  • Next by thread: Re: ssh not working behind proxy?
  • Index(es):
    • Date
    • Thread