etc:users:jcmvbkbc:ssh-over-http-proxy
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
etc:users:jcmvbkbc:ssh-over-http-proxy [2009/10/13 09:14] – создано jcmvbkbc | etc:users:jcmvbkbc:ssh-over-http-proxy [2016/08/08 20:53] (current) – ↷ Page moved from users:jcmvbkbc:ssh-over-http-proxy to etc:users:jcmvbkbc:ssh-over-http-proxy kel | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Symptoms ===== | ===== Symptoms ===== | ||
SSH client establishes TCP connection, but after a while disconnects with message " | SSH client establishes TCP connection, but after a while disconnects with message " | ||
+ | |||
===== Analysis ===== | ===== Analysis ===== | ||
- | It's been discovered that HTTP proxy may not establish outbound connection unless it receive two lines of text closed by ' | + | It's been discovered that HTTP proxy may not establish outbound connection unless it receive two lines of text closed by ' |
===== Solution ===== | ===== Solution ===== | ||
- | We need to push two lines of text at the beginning of SSH client connection, throw them away (as they don' | + | We need to push two lines of text at the beginning of SSH client connection, throw them away (as they don' |
===== Implementation ===== | ===== Implementation ===== | ||
Line 39: | Line 41: | ||
EOF | EOF | ||
- | head -n2 >/ | + | read |
+ | read | ||
nc 127.0.0.1 22 | nc 127.0.0.1 22 | ||
</ | </ |
etc/users/jcmvbkbc/ssh-over-http-proxy.1255410846.txt.gz · Last modified: 2009/10/13 09:14 by jcmvbkbc