Friday, October 9, 2009

Google Secure Data Connector -2

Update on this one. I think the tunnel server can use small program to attach to the established the HTTPS connection by using the
ssh -o ProxyCommand="small program" -L port:localhost:1080 SDCip -N
The small program will pipeline stdin/stdout to established https connection.

This small program will take anything

This is a real cool command. For example, I can connect from client box (192.168.122.1) to service box (192.168.122.2) using a https poxy (192.168.122.3) if I enabled the 22 for SSL connection in proxy settings:
ssh -o ProxyCommand="nc -X connect -x 192.168.122.3:8001 %h %p" -L 8888:localhost:1344 192.168.122.2 -N

(1) connect from 192.168.122.1 to 192.168.122.3 using the https
(2) the 192.168.122.3 will try to establish a TCP connection to 192.168.122.2:22
(3) After the connection is established, it will in turn notify the 192.168.122.1 by using connect OK
(4) Now it works on the ssh protocols ...

No comments: