On 2009-02-13, Pete Vickers <[email protected]> wrote:
> If your just trying to do an SSH connect via a http proxy, then I do  
> something like this:
>
> [p...@air] ~> cat  ~/.ssh/pconn.sh
> #!/bin/bash
> # pconn.sh
>
> LF=$'\015'
>
> CMD="CONNECT $1:$2 HTTP/1.0"
> echo "yyy${CMD}yyy" >&2
>
> (echo "$CMD$LF"
> echo
> cat ) |
> nc proxy_server_ip_address 8080 | (
> while read L && [ ! -z "${L%$LF}" ]; do echo "xxx${L%$LF}xxx" >&2; done
> cat )

Related; people behind MS proxies that need auth might want to look
at ports/www/ntlmaps.

> but be aware it only works if the proxy admin has not restricted the  
> proxy to prevent CONNECT method to ports other than 443.

Unless the SSH server is running on an acceptable port, of course...

Reply via email to