|
From: Jason V. <jas...@gm...> - 2008-04-03 15:19:17
|
I'm behind a proxy at school and want to bypass the filters by tunneling my
traffic through SSH. So I have setup an SSH server at home and set the
listening port to 443. I am able to successfully connect to it from other
networks, so I know that there is nothing wrong with the SSH server.
However, I am unable to connect to it through the proxy at school. I've
tried adding the ProxyCommand directive to my ssh_config file, but I'm not
sure if it's being used correctly. The client is running Mac OS X 10.5 and
here is the directive used in my ssh_config file:
ProxyCommand /usr/bin/proxytunnel -p lvapps:9017 -P x:x -d %h %p
I set the ProxyCommand as above because when I try to open my browser behind
the proxy, I am initially redirected to http://lvapps:9017 and asked to log
in to the area "lvapps" on lvapps:9017. Here is the output from trying to
login to ssh:
iBook:~ Jason$ ssh myserver -v
OpenSSH_4.7p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/Jason/.ssh/config
debug1: Applying options for myserver
debug1: Reading configuration data /etc/ssh_config
debug1: Executing proxy command: exec /usr/bin/proxytunnel -p lvapps:9017 -P
x:x -d myserver:443
debug1: permanently_drop_suid: 501
Via lvapps:9017 -> myserver:443
debug1: identity file /Users/Jason/.ssh/identity type -1
HTTP return code: 400 Bad Request
debug1: identity file /Users/Jason/.ssh/id_rsa type 1
debug1: identity file /Users/Jason/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host
iBook:~ Jason$
As you can see, proxytunnel seems to connect to the proxy fine, but fails
when trying to establish the tunnel to the ssh server ("HTTP return code:
400 Bad Request".) Additionally, I tried running this proxytunnel command in
the terminal, just to see if it would work independently of the SSH
invocation, but to no avail. Any ideas? Any feedback would be greatly
appreciated!
|