Re: ssh not working behind proxy?
Re: ssh not working behind proxy?
- Subject: Re: ssh not working behind proxy?
- From: Paula R T Coelho <email@hidden>
- Date: Wed, 9 Sep 2009 16:02:57 -0300
thanks for the quick help Jonas.
i added the line, and i'm getting
nc: Proxy error: "HTTP/1.0 403 Forbidden"
ssh_exchange_identification: Connection closed by remote host
I need to provide the proxy password somewhere, but couldn't find how in the ssh_config or nc manual.
p.
2009/9/9 Jonas Maebe
<email@hidden>
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden